home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / inet / internet-drafts / draft-ietf-822ext-mime2-00.txt < prev    next >
Text File  |  1993-03-03  |  221KB  |  5,685 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.             Network Working Group               N. Borenstein, Bellcore
  8.             Internet Draft: MIME                     N. Freed, Innosoft
  9.                                                           February 1993
  10.  
  11.  
  12.                    MIME  (Multipurpose Internet Mail Extensions):
  13.  
  14.  
  15.                       Mechanisms for Specifying and Describing
  16.                        the Format of Internet Message Bodies
  17.  
  18.  
  19.           Status of this Memo
  20.  
  21.  
  22.             This document is an Internet  Draft.   Internet  Drafts  are
  23.             working  documents  of  the  Internet Engineering Task Force
  24.             (IETF), its Areas, and its Working Groups. Note  that  other
  25.             groups  may  also  distribute  working documents as Internet
  26.             Drafts. Internet Drafts are  draft  documents  valid  for  a
  27.             maximum  of  six  months.   Internet  Drafts may be updated,
  28.             replaced, or obsoleted by other documents at any  time.   It
  29.             is  not  appropriate  to  use  Internet  Drafts as reference
  30.             material or to cite them other than as a "working draft"  or
  31.             "work  in  progress."  Please check the I-D abstract listing
  32.             contained in each Internet  Draft  directory  to  learn  the
  33.             current status of this or any other Internet Draft.
  34.  
  35.             This  document  is  a  PROPOSED  revision   to   RFC   1341.
  36.             Significant  differences  from  RFC  1341  are summarized in
  37.             Appendix H.  In addition, in the PostScript version of  this
  38.             memo,  ALL  differences  from  RFC  1341  are indicated by a
  39.             strikethrough bar across the text.  (Change  bars  were  not
  40.             available.)
  41.  
  42.             Distribution  of  this  memo  is  unlimited.   Please   send
  43.             comments to ietf-822@dimacs.rutgers.edu.
  44.  
  45.           Abstract
  46.  
  47.             RFC 822 defines  a  message  representation  protocol  which
  48.             specifies  considerable  detail  about  message headers, but
  49.             which leaves the message content, or message body,  as  flat
  50.             ASCII  text.   This document redefines the format of message
  51.             bodies to allow multi-part textual and  non-textual  message
  52.             bodies  to  be  represented  and  exchanged  without loss of
  53.  
  54.  
  55.  
  56.             Borenstein & Freed DRAFT - expires 8/1/93           [Page i]
  57.  
  58.  
  59.  
  60.  
  61.  
  62.             information.
  63.  
  64.  
  65.             This is based on earlier work documented in RFC 934 and  RFC
  66.             1049,  but  extends  and revises that work.  Because RFC 822
  67.             said so  little  about  message  bodies,  this  document  is
  68.             largely orthogonal to (rather than a revision of) RFC 822.
  69.  
  70.             In  particular,  this  document  is  designed   to   provide
  71.             facilities  to include multiple objects in a single message,
  72.             to represent body text in  character  sets  other  than  US-
  73.             ASCII,  to  represent formatted multi-font text messages, to
  74.             represent non-textual material  such  as  images  and  audio
  75.             fragments,  and  generally  to  facilitate  later extensions
  76.             defining new types of Internet mail for use  by  cooperating
  77.             mail agents.
  78.  
  79.             This document does NOT extend Internet mail header fields to
  80.             permit  anything  other  than  US-ASCII  text  data.   It is
  81.             recognized that such extensions are necessary, and they  are
  82.             the subject of a companion document [RFC -1342].
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.             Borenstein & Freed DRAFT - expires 8/1/93          [Page ii]
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.             THIS PAGE INTENTIONALLY LEFT BLANK.
  127.  
  128.             The table of contents should be inserted after this page.
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.             Borenstein & Freed DRAFT - expires 8/1/93         [Page iii]
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.             1    Introduction
  182.  
  183.             Since its publication in 1982, RFC 822 [RFC-822] has defined
  184.             the   standard  format  of  textual  mail  messages  on  the
  185.             Internet.  Its success has been such that the RFC 822 format
  186.             has  been  adopted,  wholly  or  partially,  well beyond the
  187.             confines of the Internet and  the  Internet  SMTP  transport
  188.             defined  by RFC 821 [RFC-821].  As the format has seen wider
  189.             use,  a  number  of  limitations  have  proven  increasingly
  190.             restrictive for the user community.
  191.  
  192.             RFC 822 was intended to specify a format for text  messages.
  193.             As such, non-text messages, such as multimedia messages that
  194.             might include audio or images,  are  simply  not  mentioned.
  195.             Even in the case of text, however, RFC 822 is inadequate for
  196.             the needs of mail users whose languages require the  use  of
  197.             character  sets  richer  than US ASCII [US-ASCII]. Since RFC
  198.             822 does not specify mechanisms for mail  containing  audio,
  199.             video,  Asian  language  text, or even text in most European
  200.             languages, additional specifications are needed.
  201.  
  202.             One of the notable limitations of  RFC  821/822  based  mail
  203.             systems  is  the  fact  that  they  limit  the  contents  of
  204.             electronic  mail  messages  to  relatively  short  lines  of
  205.             seven-bit  ASCII.   This  forces  users  to convert any non-
  206.             textual data that they may wish to send into seven-bit bytes
  207.             representable  as printable ASCII characters before invoking
  208.             a local mail UA (User Agent,  a  program  with  which  human
  209.             users  send  and  receive  mail). Examples of such encodings
  210.             currently used in the  Internet  include  pure  hexadecimal,
  211.             uuencode,  the  3-in-4 base 64 scheme specified in RFC 1113,
  212.             the Andrew Toolkit Representation [ATK], and many others.
  213.  
  214.             The limitations of RFC 822 mail become even more apparent as
  215.             gateways  are  designed  to  allow  for the exchange of mail
  216.             messages between RFC 822 hosts and X.400 hosts. X.400 [X400]
  217.             specifies  mechanisms  for the inclusion of non-textual body
  218.             parts  within  electronic  mail   messages.    The   current
  219.             standards  for  the  mapping  of  X.400  messages to RFC 822
  220.             messages specify that either X.400  non-textual  body  parts
  221.             must  be  converted  to (not encoded in) an ASCII format, or
  222.             that they must be discarded, notifying the RFC 822 user that
  223.             discarding  has  occurred.   This is clearly undesirable, as
  224.             information that a user may wish to receive is  lost.   Even
  225.             though  a  user's  UA may not have the capability of dealing
  226.             with the non-textual body part, the  user  might  have  some
  227.  
  228.  
  229.  
  230.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 1]
  231.  
  232.  
  233.  
  234.  
  235.  
  236.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  237.  
  238.  
  239.             mechanism  external  to  the  UA  that  can  extract  useful
  240.             information from the body part.  Moreover, it does not allow
  241.             for  the  fact  that the message may eventually be gatewayed
  242.             back into an X.400 message handling system (i.e., the  X.400
  243.             message  is  "tunneled"  through  Internet  mail), where the
  244.             non-textual  information  would  definitely  become   useful
  245.             again.
  246.  
  247.             This document describes several mechanisms that  combine  to
  248.             solve most of these problems without introducing any serious
  249.             incompatibilities with the existing world of RFC  822  mail.
  250.             In particular, it describes:
  251.  
  252.             1.  A MIME-Version header field, which uses a version number
  253.                  to  declare  a  message  to  be  conformant  with  this
  254.                  specification and  allows  mail  processing  agents  to
  255.                  distinguish  between  such messages and those generated
  256.                  by older or non-conformant software, which is  presumed
  257.                  to lack such a field.
  258.  
  259.             2.  A Content-Type header field, generalized from  RFC  1049
  260.                  [RFC-1049],  which  can be used to specify the type and
  261.                  subtype of data in the body of a message and  to  fully
  262.                  specify  the  native  representation (encoding) of such
  263.                  data.
  264.  
  265.                  2.a.  A "text" Content-Type value, which can be used to
  266.                       represent  textual  information  in  a  number  of
  267.                       character  sets  and  formatted  text  description
  268.                       languages in a standardized manner.
  269.  
  270.                  2.b.  A "multipart" Content-Type value,  which  can  be
  271.                       used  to  combine  several body parts, possibly of
  272.                       differing types of data, into a single message.
  273.  
  274.                  2.c.  An "application" Content-Type value, which can be
  275.                       used  to transmit application data or binary data,
  276.                       and hence,  among  other  uses,  to  implement  an
  277.                       electronic mail file transfer service.
  278.  
  279.                  2.d.  A "message" Content-Type value, for encapsulating
  280.                       a mail message.
  281.  
  282.                  2.e  An "image"  Content-Type value,  for  transmitting
  283.                       still image (picture) data.
  284.  
  285.  
  286.  
  287.  
  288.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 2]
  289.  
  290.  
  291.  
  292.  
  293.  
  294.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  295.  
  296.  
  297.                  2.f.  An "audio"  Content-Type value, for  transmitting
  298.                       audio or voice data.
  299.  
  300.                  2.g.  A "video"  Content-Type value,  for  transmitting
  301.                       video or moving image data, possibly with audio as
  302.                       part of the composite video data format.
  303.  
  304.             3.  A Content-Transfer-Encoding header field, which  can  be
  305.                  used  to specify an auxiliary encoding that was applied
  306.                  to the data in order to allow it to pass  through  mail
  307.                  transport  mechanisms  which may have data or character
  308.                  set limitations.
  309.  
  310.             4.  Three additional header  fields  that  can  be  used  to
  311.                  further  describe  the  data  in  a  message  body, the
  312.                  Content-ID and Content-Description header fields.
  313.  
  314.             MIME has been carefully designed as an extensible mechanism,
  315.             and  it  is  expected  that  the set of content-type/subtype
  316.             pairs   and   their   associated   parameters   will    grow
  317.             significantly with time.  Several other MIME fields, notably
  318.             including character set names, are likely to have new values
  319.             defined  over time.  In order to ensure that the set of such
  320.             values is  developed  in  an  orderly,  well-specified,  and
  321.             public  manner,  MIME  defines  a registration process which
  322.             uses the Internet Assigned Numbers  Authority  (IANA)  as  a
  323.             central  registry  for  such  values.   Appendix  E provides
  324.             details about how IANA registration is accomplished.
  325.  
  326.             Finally, to specify and promote interoperability, Appendix A
  327.             of  this  document  provides a basic applicability statement
  328.             for a subset of the above mechanisms that defines a  minimal
  329.             level of "conformance" with this document.
  330.  
  331.                  HISTORICAL  NOTE:   Several  of   the   mechanisms
  332.                  described  in  this  document  may  seem  somewhat
  333.                  strange or even baroque at first reading.   It  is
  334.                  important to note that compatibility with existing
  335.                  standards AND robustness across existing  practice
  336.                  were  two of the highest priorities of the working
  337.                  group   that   developed   this   document.     In
  338.                  particular,  compatibility was always favored over
  339.                  elegance.
  340.  
  341.             MIME was first defined and published as RFC 1341 [RFC-1341].
  342.             This  document  is  a  relatively  minor  updating  of  that
  343.  
  344.  
  345.  
  346.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 3]
  347.  
  348.  
  349.  
  350.  
  351.  
  352.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  353.  
  354.  
  355.             document, and is intended to supersede it.  The  differences
  356.             between  this  document  and  RFC  1341  are  summarized  in
  357.             Appendix H.  Please refer to the current edition of the "IAB
  358.             Official  Protocol  Standards" for the standardization state
  359.             and status of this protocol.    Several other RFC  documents
  360.             will  be  of  interest  to  the MIME implementor, particular
  361.             [RFC-1342], [RFC 1343], [RFC-1344],  and [RFC-1345].
  362.  
  363.             2    Notations, Conventions, and Generic BNF Grammar
  364.  
  365.             This document is being published in  two  versions,  one  as
  366.             plain ASCII text and one as PostScript1  .   The  latter  is
  367.             recommended,  though the textual contents are identical.  An
  368.             Andrew-format copy of this document is also  available  from
  369.             the first author (Borenstein).
  370.  
  371.             Although the mechanisms specified in this document  are  all
  372.             described  in prose, most are also described formally in the
  373.             modified BNF notation of RFC 822.  Implementors will need to
  374.             be  familiar  with this notation in order to understand this
  375.             specification, and are referred to RFC 822  for  a  complete
  376.             explanation of the modified BNF notation.
  377.  
  378.             Some of the modified BNF in this document makes reference to
  379.             syntactic  entities  that  are defined in RFC 822 and not in
  380.             this document.  A complete formal grammar, then, is obtained
  381.             by combining the collected grammar appendix of this document
  382.             with that of RFC 822.
  383.  
  384.             The term CRLF, in this document, refers to the  sequence  of
  385.             the  two  ASCII  characters CR (13) and LF (10) which, taken
  386.             together, in this order, denote a  line  break  in  RFC  822
  387.             mail.
  388.  
  389.             The term "character  set",  wherever  it  is  used  in  this
  390.             document,  refers  to  a  unique mapping of a byte stream to
  391.             glyphs, a mapping which does not require external  profiling
  392.             information.   For  example,  bare  "ISO 10646" can't be the
  393.             charset parameter,  because  it  requires  several  language
  394.             information for the unique mapping to glyphs.  However, this
  395.             term can refer to multibyte character sets and to  extension
  396.             techniques such as those used in ISO 2022.
  397.  
  398.  
  399.             __________
  400.             1PostScript is a trademark of Adobe Systems Incorporated.
  401.  
  402.  
  403.  
  404.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 4]
  405.  
  406.  
  407.  
  408.  
  409.  
  410.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  411.  
  412.  
  413.             The term "message", when not further qualified, means either
  414.             the (complete or "top-level") message being transferred on a
  415.             network, or  a  message  encapsulated  in  a  body  of  type
  416.             "message".
  417.  
  418.             The term "body part", in this document,  means  one  of  the
  419.             parts  of  the body of a multipart entity. A body part has a
  420.             header and a body, so it makes sense to speak about the body
  421.             of a body part.
  422.  
  423.             The term "entity", in this document, means either a  message
  424.             or  a  body  part.  All kinds of entities share the property
  425.             that they have a header and a body.
  426.  
  427.             The term "body", when not further qualified, means the  body
  428.             of  an  entity, that is the body of either a message or of a
  429.             body part.
  430.  
  431.                  Note : the previous four definitions  are  clearly
  432.                  circular.   This  is unavoidable, since the overal
  433.                  structure of a MIME message is indeed recursive.
  434.  
  435.             In this document, all numeric and octet values are given  in
  436.             decimal notation.
  437.  
  438.             It must be noted that  Content-Type  values,  subtypes,  and
  439.             parameter  names  as  defined  in  this  document  are case-
  440.             insensitive.  However, parameter values  are  case-sensitive
  441.             unless otherwise specified for the specific parameter.
  442.  
  443.                  FORMATTING NOTE:  This document has been carefully
  444.                  formatted  for  ease  of  reading.  The PostScript
  445.                  version of this document,  in  particular,  places
  446.                  notes  like  this one, which may be skipped by the
  447.                  reader,  in  a  smaller,  italicized,  font,   and
  448.                  indents it as well.  In the text version, only the
  449.                  indentation is preserved, so if  you  are  reading
  450.                  the  text version of this you might consider using
  451.                  the PostScript version instead. However, all  such
  452.                  notes  will be indented and preceded by "NOTE:" or
  453.                  some  similar  introduction,  even  in  the   text
  454.                  version.
  455.  
  456.                  The primary purpose of these  non-essential  notes
  457.                  is  to  convey  information about the rationale of
  458.                  this document, or to place this  document  in  the
  459.  
  460.  
  461.  
  462.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 5]
  463.  
  464.  
  465.  
  466.  
  467.  
  468.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  469.  
  470.  
  471.                  proper  historical  or evolutionary context.  Such
  472.                  information  may  be  skipped  by  those  who  are
  473.                  focused   entirely   on   building   a  conformant
  474.                  implementation, but may be of  use  to  those  who
  475.                  wish to understand why this document is written as
  476.                  it is.
  477.  
  478.                  For ease of recognition, all BNF definitions  have
  479.                  been   placed   in   a  fixed-width  font  in  the
  480.                  PostScript version of this document.
  481.  
  482.  
  483.  
  484.             3    The MIME-Version Header Field
  485.  
  486.             Since RFC 822 was published in 1982, there has  really  been
  487.             only  one  format  standard for Internet messages, and there
  488.             has  been  little  perceived  need  to  declare  the  format
  489.             standard  in  use.  This document is an independent document
  490.             that complements RFC 822. Although the  extensions  in  this
  491.             document have been defined in such a way as to be compatible
  492.             with RFC 822, there are  still  circumstances  in  which  it
  493.             might  be  desirable  for  a  mail-processing  agent to know
  494.             whether a message was composed  with  the  new  standard  in
  495.             mind.
  496.  
  497.             Therefore, this document defines a new header field,  "MIME-
  498.             Version",  which is to be used to declare the version of the
  499.             Internet message body format standard in use.
  500.  
  501.             Messages composed in  accordance  with  this  document  MUST
  502.             include  such  a  header  field, with the following verbatim
  503.             text:
  504.  
  505.             MIME-Version: 1.0
  506.  
  507.             The presence of this header field is an assertion  that  the
  508.             message has been composed in compliance with this document.
  509.  
  510.             Since it is possible that a future document might extend the
  511.             message format standard again, a formal BNF is given for the
  512.             content of the MIME-Version field:
  513.  
  514.             MIME-Version := 1*DIGIT "." 1*DIGIT
  515.  
  516.  
  517.  
  518.  
  519.  
  520.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 6]
  521.  
  522.  
  523.  
  524.  
  525.  
  526.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  527.  
  528.  
  529.             Thus, future  format  specifiers,  which  might  replace  or
  530.             extend  "1.0", are (minimally) constrained by the definition
  531.             of "text", which appears in RFC 822.
  532.  
  533.             Note that the MIME-Version header field is required  at  the
  534.             top  level  of  a  message. It is not required for each body
  535.             part of a multipart entity.  It is required for the embedded
  536.             headers  of  a  body  of  type  "message" if and only if the
  537.             embedded message is itself claimed to be MIME-conformant.
  538.  
  539.             It is not possible to fully specify how a mail  reader  that
  540.             conforms  with MIME as defined in this document should treat
  541.             a message that might arrive in the future with some value of
  542.             MIME-Version   other   than   "1.0".    However,  conformant
  543.             software is encouraged to check the version  number  and  at
  544.             least  warn  the  user  if  an  unrecognized MIME-version is
  545.             encountered.
  546.  
  547.             It is also worth noting that version  control  for  specific
  548.             content-types  is  not  accomplished  using the MIME-Version
  549.             mechanism.    In   particular,   some   formats   (such   as
  550.             application/postscript)  have  version numbering conventions
  551.             that are  internal  to  the  document  format.   Where  such
  552.             conventions  exist,  MIME  does  nothing  to supersede them.
  553.             Where no such conventions exist, a MIME  type  might  use  a
  554.             "version" parameter in the content-type field if necessary.
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 7]
  579.  
  580.  
  581.  
  582.  
  583.  
  584.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  585.  
  586.  
  587.             4    The Content-Type Header Field
  588.  
  589.             The purpose of the Content-Type field  is  to  describe  the
  590.             data  contained  in the body fully enough that the receiving
  591.             user agent can pick an appropriate  agent  or  mechanism  to
  592.             present  the  data  to the user, or  otherwise deal with the
  593.             data in an appropriate manner.
  594.  
  595.                  HISTORICAL NOTE:  The  Content-Type  header  field
  596.                  was  first defined in RFC 1049.  RFC 1049 Content-
  597.                  types used a simpler and less powerful syntax, but
  598.                  one  that is largely compatible with the mechanism
  599.                  given here.
  600.  
  601.             The Content-Type  header field is used to specify the nature
  602.             of  the  data  in  the body of an entity, by giving type and
  603.             subtype identifiers, and by providing auxiliary  information
  604.             that may be required for certain types.   After the type and
  605.             subtype names, the remainder of the header field is simply a
  606.             set of parameters, specified in an attribute/value notation.
  607.             The set of meaningful parameters differs for  the  different
  608.             types.   The  ordering  of  parameters  is  not significant.
  609.             Among the defined parameters is  a  "charset"  parameter  by
  610.             which  the  character  set used in the body may be declared.
  611.             Comments are allowed in accordance with RFC  822  rules  for
  612.             structured header fields.
  613.  
  614.             In general, the top-level Content-Type is  used  to  declare
  615.             the  general  type  of  data,  while the subtype specifies a
  616.             specific format for that type of data.  Thus, a Content-Type
  617.             of  "image/xyz" is enough to tell a user agent that the data
  618.             is an image, even if the user agent has no knowledge of  the
  619.             specific  image format "xyz".  Such information can be used,
  620.             for example, to decide whether or not to show a user the raw
  621.             data from an unrecognized subtype -- such an action might be
  622.             reasonable for unrecognized subtypes of text,  but  not  for
  623.             unrecognized  subtypes  of image or audio.  For this reason,
  624.             registered subtypes of audio, image, text, and video, should
  625.             not  contain  embedded  information  that  is  really  of  a
  626.             different type.  Such compound types should  be  represented
  627.             using the "multipart" or "application" types.
  628.  
  629.             Parameters are modifiers of the content-subtype, and do  not
  630.             fundamentally  affect  the  requirements of the host system.
  631.             Although  most  parameters  make  sense  only  with  certain
  632.             content-types,  others  are  "global" in the sense that they
  633.  
  634.  
  635.  
  636.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 8]
  637.  
  638.  
  639.  
  640.  
  641.  
  642.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  643.  
  644.  
  645.             might apply to any  subtype.  For  example,  the  "boundary"
  646.             parameter makes sense only for the "multipart" content-type,
  647.             but the "charset" parameter might make  sense  with  several
  648.             content-types.
  649.  
  650.             UNIVERSAL "FILENAME" PARAMETER:  For any given content-type,
  651.             the  set  of  valid  parameters  is  defined  as part of the
  652.             definition of the content-type itself.   However,  a  single
  653.             exception  to  this  rule is the "filename" parameter, which
  654.             may be included as part of any content-type field, and is to
  655.             be  interpreted  as  a suggested file name in the event that
  656.             the user wishes to write out  the  data  (in  its  unencoded
  657.             form) to a file.
  658.  
  659.             An initial set of seven Content-Types  is  defined  by  this
  660.             document.   This  set  of  top-level names is intended to be
  661.             substantially complete.  It is expected  that  additions  to
  662.             the   larger   set  of  supported  types  can  generally  be
  663.             accomplished by  the  creation  of  new  subtypes  of  these
  664.             initial  types.   In the future, more top-level types may be
  665.             defined only by an extension to this standard.   If  another
  666.             primary  type is to be used for any reason, it must be given
  667.             a name starting  with  "X-"  to  indicate  its  non-standard
  668.             status  and  to  avoid  a  potential  conflict with a future
  669.             official name.
  670.  
  671.             In the Extended BNF notation  of  RFC  822,  a  Content-Type
  672.             header field value is defined as follows:
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.             Borenstein & Freed DRAFT - expires 8/1/93           [Page 9]
  695.  
  696.  
  697.  
  698.  
  699.  
  700.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  701.  
  702.  
  703.             content :=  "Content-Type" ":" type "/" subtype *(";" parms)
  704.                       ; case-insensitive matching of type and subtype
  705.  
  706.             type :=          "application"     / "audio"
  707.                       / "image"           / "message"
  708.                       / "multipart"  / "text"
  709.                       / "video"           / extension-token
  710.                       ; All values case-insensitive
  711.  
  712.             extension-token :=  x-token / iana-token
  713.  
  714.             iana-token := <a publicly-defined extension token,
  715.                       registered with IANA, as specified in
  716.                       appendix E>
  717.  
  718.             x-token := <The two characters "X-" or "x-"  followed,  with
  719.             no
  720.                        intervening white space, by any token>
  721.  
  722.             subtype := token
  723.  
  724.             parms :=  filename / parameter
  725.  
  726.             filename := "filename" "=" "value"
  727.                  ; suggested name to use if body-part is stored locally
  728.  
  729.             parameter := attribute "=" value
  730.  
  731.             attribute := token
  732.  
  733.             value := token / quoted-string
  734.  
  735.             token  :=  1*<any  (ASCII)  CHAR  except  SPACE,  CTLs,   or
  736.             tspecials>
  737.  
  738.             tspecials :=  "(" / ")" / "<" / ">" / "@"
  739.                        /  "," / ";" / ":" / "\" / <">
  740.                        /  "/" / "[" / "]" / "?" / "="
  741.                       ; Must be in quoted-string,
  742.                       ; to use withing parameter values
  743.  
  744.             Note that the definition of "tspecials" is the same  as  the
  745.             RFC  822  definition  of "specials" with the addition of the
  746.             three characters "/", "?", and "=", and the removal of ".".
  747.  
  748.  
  749.  
  750.  
  751.  
  752.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 10]
  753.  
  754.  
  755.  
  756.  
  757.  
  758.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  759.  
  760.  
  761.             Note also that a subtype specification is MANDATORY.   There
  762.             are no default subtypes.
  763.  
  764.             The  type,  subtype,  and  parameter  names  are  not   case
  765.             sensitive.   For  example,  TEXT,  Text,  and  TeXt  are all
  766.             equivalent.  Parameter values are normally  case  sensitive,
  767.             but   certain   parameters   are  interpreted  to  be  case-
  768.             insensitive, depending on the intended use.   (For  example,
  769.             multipart  boundaries  are  case-sensitive, but the "access-
  770.             type" for message/External-body is not case-sensitive.)
  771.  
  772.             Beyond this syntax, the only constraint on the definition of
  773.             subtype  names  is  the  desire  that  their  uses  must not
  774.             conflict.  That is, it would  be  undesirable  to  have  two
  775.             different       communities       using       "Content-Type:
  776.             application/foobar"  to  mean  two  different  things.   The
  777.             process  of  defining  new  content-subtypes,  then,  is not
  778.             intended to be a mechanism for  imposing  restrictions,  but
  779.             simply  a  mechanism  for publicizing the usages. There are,
  780.             therefore,  two  acceptable  mechanisms  for  defining   new
  781.             Content-Type subtypes:
  782.  
  783.                  1.  Private values (starting  with  "X-")  may  be
  784.                       defined  bilaterally  between two cooperating
  785.                       agents  without   outside   registration   or
  786.                       standardization.
  787.  
  788.                  2.   New  standard  values  must  be   documented,
  789.                       registered  with,  and  approved  by IANA, as
  790.                       described in Appendix E.  Where intended  for
  791.                       public  use,  the  formats they refer to must
  792.                       also be defined by a published specification,
  793.                       and possibly offered for standardization.
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 11]
  811.  
  812.  
  813.  
  814.  
  815.  
  816.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  817.  
  818.  
  819.             The seven  standard  initial  predefined  Content-Types  are
  820.             detailed in the bulk of this document.  They are:
  821.  
  822.                  text --  textual  information.   The  primary  subtype,
  823.                       "plain",  indicates plain (unformatted) text.   No
  824.                       special software  is  required  to  get  the  full
  825.                       meaning  of  the  text, aside from support for the
  826.                       indicated character set.  Subtypes are to be  used
  827.                       for  enriched  text  in  forms  where  application
  828.                       software may enhance the appearance of  the  text,
  829.                       but such software must not be required in order to
  830.                       get the general  idea  of  the  content.  Possible
  831.                       subtypes  thus include any readable word processor
  832.                       format.   A  very  simple  and  portable  subtype,
  833.                       richtext,  was  defined in RFC 1341, with a future
  834.                       revision expected.
  835.                  multipart --  data  consisting  of  multiple  parts  of
  836.                       independent  data  types.   Four  initial subtypes
  837.                       are  defined,  including   the   primary   "mixed"
  838.                       subtype,  "alternative"  for representing the same
  839.                       data in multiple  formats,  "parallel"  for  parts
  840.                       intended to be viewed simultaneously, and "digest"
  841.                       for multipart entities in which each  part  is  of
  842.                       type "message".
  843.                  message  --  an  encapsulated  message.   A   body   of
  844.                       Content-Type "message" is itself a fully formatted
  845.                       RFC 822 conformant message which may  contain  its
  846.                       own  different  Content-Type  header  field.   The
  847.                       primary  subtype  is  "rfc822".    The   "partial"
  848.                       subtype is defined for partial messages, to permit
  849.                       the fragmented transmission  of  bodies  that  are
  850.                       thought  to be too large to be passed through mail
  851.                       transport    facilities.      Another     subtype,
  852.                       "External-body",  is  defined for specifying large
  853.                       bodies by reference to an external data source.
  854.                  image --  image data.  Image requires a display  device
  855.                       (such  as a graphical display, a printer, or a FAX
  856.                       machine)  to  view   the   information.    Initial
  857.                       subtypes  are  defined  for  two widely-used image
  858.                       formats, jpeg and gif.
  859.                  audio --  audio data,  with  initial  subtype  "basic".
  860.                       Audio  requires  an audio output device (such as a
  861.                       speaker or a telephone) to "display" the contents.
  862.                  video --  video data.  Video requires the capability to
  863.                       display   moving   images,   typically   including
  864.                       specialized hardware and  software.   The  initial
  865.  
  866.  
  867.  
  868.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 12]
  869.  
  870.  
  871.  
  872.  
  873.  
  874.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  875.  
  876.  
  877.                       subtype is "mpeg".
  878.                  application --  some  other  kind  of  data,  typically
  879.                       either uninterpreted binary data or information to
  880.                       be processed by  a  mail-based  application.   The
  881.                       primary  subtype, "octet-stream", is to be used in
  882.                       the case of uninterpreted binary  data,  in  which
  883.                       case  the  simplest recommended action is to offer
  884.                       to write the information into a file for the user.
  885.                       An  additional  subtype,  "PostScript", is defined
  886.                       for transporting PostScript documents  in  bodies.
  887.                       Other  expected  uses  for  "application"  include
  888.                       spreadsheets,  data  for   mail-based   scheduling
  889.                       systems,     and     languages     for    "active"
  890.                       (computational) email.  (Note  that  active  email
  891.                       entails several security considerations, which are
  892.                       discussed later in this memo, particularly in  the
  893.                       context of application/PostScript.)
  894.  
  895.             Default RFC 822 messages are typed by this protocol as plain
  896.             text  in the US-ASCII character set, which can be explicitly
  897.             specified as "Content-type:  text/plain;  charset=us-ascii".
  898.             If  no  Content-Type  is specified, either by error or by an
  899.             older user agent, this default is assumed.   In the presence
  900.             of  a  MIME-Version header field, a receiving User Agent can
  901.             also assume  that  plain  US-ASCII  text  was  the  sender's
  902.             intent.   In  the  absence  of a MIME-Version specification,
  903.             plain US-ASCII text must still be assumed, but the  sender's
  904.             intent might have been otherwise.
  905.  
  906.                  RATIONALE:  In the  absence  of  any  Content-Type
  907.                  header  field  or MIME-Version header field, it is
  908.                  impossible  to  be  certain  that  a  message   is
  909.                  actually text in the US-ASCII character set, since
  910.                  it  might  well  be  a  message  that,  using  the
  911.                  conventions  that  predate this document, includes
  912.                  text in another character set or non-textual  data
  913.                  in   a   manner   that   cannot  be  automatically
  914.                  recognized (e.g., a uuencoded compressed UNIX  tar
  915.                  file).  Although  there  is  no  fully  acceptable
  916.                  alternative to treating such untyped  messages  as
  917.                  "text/plain;    charset=us-ascii",    implementors
  918.                  should remain aware that if a message  lacks  both
  919.                  the   MIME-Version  and  the  Content-Type  header
  920.                  fields,  it  may  in   practice   contain   almost
  921.                  anything.
  922.  
  923.  
  924.  
  925.  
  926.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 13]
  927.  
  928.  
  929.  
  930.  
  931.  
  932.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  933.  
  934.  
  935.             It should be noted that  the  list  of  Content-Type  values
  936.             given  here  may  be  augmented  in time, via the mechanisms
  937.             described above, and that the set of subtypes is expected to
  938.             grow substantially.
  939.  
  940.             When a mail reader encounters mail with an unknown  Content-
  941.             type  value,  it  should generally treat it as equivalent to
  942.             "application/octet-stream",  as  described  later  in   this
  943.             document.
  944.  
  945.             5    The Content-Transfer-Encoding Header Field
  946.  
  947.             Many Content-Types which could usefully be  transported  via
  948.             email  are  represented, in their "natural" format, as 8-bit
  949.             character or binary data.  Such data cannot  be  transmitted
  950.             over   some  transport  protocols.   For  example,  RFC  821
  951.             restricts mail messages to 7-bit  US-ASCII  data  with  1000
  952.             character lines.
  953.  
  954.             It is necessary, therefore, to define a  standard  mechanism
  955.             for  re-encoding  such  data into a 7-bit short-line format.
  956.             This  document  specifies  that  such  encodings   will   be
  957.             indicated by a new "Content-Transfer-Encoding" header field.
  958.             The Content-Transfer-Encoding field is used to indicate  the
  959.             type  of  transformation  that  has  been  used  in order to
  960.             represent the body in an acceptable manner for transport.
  961.  
  962.             Unlike Content-Types, a proliferation  of  Content-Transfer-
  963.             Encoding  values  is  undesirable and unnecessary.  However,
  964.             establishing   only   a   single   Content-Transfer-Encoding
  965.             mechanism  does  not  seem  possible.    There is a tradeoff
  966.             between the desire for a compact and efficient  encoding  of
  967.             largely-binary  data  and the desire for a readable encoding
  968.             of data that is mostly, but not entirely, 7-bit  data.   For
  969.             this reason, at least two encoding mechanisms are necessary:
  970.             a "readable" encoding and a "dense" encoding.
  971.  
  972.             The Content-Transfer-Encoding field is designed  to  specify
  973.             an invertible mapping between the "native" representation of
  974.             a type of data and a  representation  that  can  be  readily
  975.             exchanged  using  7  bit  mail  transport protocols, such as
  976.             those defined by RFC 821 (SMTP). This  field  has  not  been
  977.             defined  by  any  previous  standard. The field's value is a
  978.             single token specifying the type of encoding, as  enumerated
  979.             below.  Formally:
  980.  
  981.  
  982.  
  983.  
  984.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 14]
  985.  
  986.  
  987.  
  988.  
  989.  
  990.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  991.  
  992.  
  993.             encoding := "Content-Transfer-Encoding ":" mechanism
  994.  
  995.             mechanism :=     "7bit"
  996.                            / "quoted-printable"
  997.                            / "quoted-base64"
  998.                            / "8bit"
  999.                            / "binary"
  1000.                            / x-token
  1001.  
  1002.             These values are not case sensitive.  That  is,  Base64  and
  1003.             BASE64  and  bAsE64 are all equivalent.  An encoding type of
  1004.             7BIT requires that the body is already in a seven-bit  mail-
  1005.             ready representation.  This is the default value -- that is,
  1006.             "Content-Transfer-Encoding:  7BIT"   is   assumed   if   the
  1007.             Content-Transfer-Encoding header field is not present.
  1008.  
  1009.             The values "8bit", "7bit", and "binary"  all  mean  that  NO
  1010.             encoding  has  been performed. However, they are potentially
  1011.             useful as indications of the kind of data contained  in  the
  1012.             object,  and  therefore  of  the kind of encoding that might
  1013.             need to be performed for transmission in a  given  transport
  1014.             system.  In particular:
  1015.  
  1016.                  "7bit" means that the data is all represented as  short
  1017.                       lines of US-ASCII data.
  1018.                  "8bit" means that the lines are short, but there may be
  1019.                       non-ASCII  characters  (octets with the high-order
  1020.                       bit set).
  1021.                  "Binary" means that not only may  non-ASCII  characters
  1022.                       be  present,  but  also  that  the  lines  are not
  1023.                       necessarily short enough for SMTP transport.
  1024.  
  1025.             The difference between  "8bit"  (or  any  other  conceivable
  1026.             bit-width  token)  and  the  "binary" token is that "binary"
  1027.             does not require adherence to any limits on line  length  or
  1028.             to  the  SMTP  CRLF semantics, while the bit-width tokens do
  1029.             require such adherence.  If the body contains  data  in  any
  1030.             bit-width   other  than  7-bit,  the  appropriate  bit-width
  1031.             Content-Transfer-Encoding token must be used  (e.g.,  "8bit"
  1032.             for unencoded 8 bit wide data).  If the body contains binary
  1033.             data, the "binary" Content-Transfer-Encoding token  must  be
  1034.             used.
  1035.  
  1036.                  NOTE:   The  distinction  between   the   Content-
  1037.                  Transfer-Encoding values of "binary," "8bit," etc.
  1038.                  may seem unimportant, in that all of  them  really
  1039.  
  1040.  
  1041.  
  1042.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 15]
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1049.  
  1050.  
  1051.                  mean "none" -- that is, there has been no encoding
  1052.                  of  the  data  for  transport.    However,   clear
  1053.                  labeling  will  be  of  enormous value to gateways
  1054.                  between  future  mail   transport   systems   with
  1055.                  differing  capabilities  in transporting data that
  1056.                  do not meet the restrictions of RFC 821 transport.
  1057.  
  1058.                  As of the publication of this document, there  are
  1059.                  no  standardized  Internet transports for which it
  1060.                  is legitimate to include unencoded 8-bit or binary
  1061.                  data   in   mail   bodies.   Thus   there  are  no
  1062.                  circumstances in  which  the  "8bit"  or  "binary"
  1063.                  Content-Transfer-Encoding is actually legal on the
  1064.                  Internet.  However, in the  event  that  8-bit  or
  1065.                  binary   mail   transport  becomes  a  reality  in
  1066.                  Internet mail, or when this document  is  used  in
  1067.                  conjunction with any other 8-bit or binary-capable
  1068.                  transport mechanism, 8-bit or binary bodies should
  1069.                  be labeled as such using this mechanism.
  1070.  
  1071.                  NOTE:  The five values defined  for  the  Content-
  1072.                  Transfer-Encoding  field  imply  nothing about the
  1073.                  Content-Type other than the algorithm by which  it
  1074.                  was  encoded  or the transport system requirements
  1075.                  if unencoded.
  1076.  
  1077.             Implementors  may,  if  necessary,   define   new   Content-
  1078.             Transfer-Encoding  values, but must use an x-token, which is
  1079.             a name prefixed by "X-" to indicate its non-standard status,
  1080.             e.g.,    "Content-Transfer-Encoding:     x-my-new-encoding".
  1081.             However, unlike Content-Types and subtypes, the creation  of
  1082.             new   Content-Transfer-Encoding  values  is  explicitly  and
  1083.             strongly  discouraged,  as  it  seems   likely   to   hinder
  1084.             interoperability  with  little potential benefit.  Their use
  1085.             is allowed only  as  the  result  of  an  agreement  between
  1086.             cooperating user agents.
  1087.  
  1088.             If a Content-Transfer-Encoding header field appears as  part
  1089.             of  a  message header, it applies to the entire body of that
  1090.             message.   If  a  Content-Transfer-Encoding   header   field
  1091.             appears as part of a body part's headers, it applies only to
  1092.             the body of that  body  part.   If  an  entity  is  of  type
  1093.             "multipart"  or  "message", the Content-Transfer-Encoding is
  1094.             not permitted to have any  value  other  than  a  bit  width
  1095.             (e.g., "7bit", "8bit", etc.) or "binary".
  1096.  
  1097.  
  1098.  
  1099.  
  1100.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 16]
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1107.  
  1108.  
  1109.             It should be noted that email is character-oriented, so that
  1110.             the  mechanisms  described  here are mechanisms for encoding
  1111.             arbitrary byte streams, not bit streams.  If a bit stream is
  1112.             to  be encoded via one of these mechanisms, it must first be
  1113.             converted to an 8-bit byte stream using the network standard
  1114.             bit  order  ("big-endian"),  in  which the earlier bits in a
  1115.             stream become the higher-order bits in a byte.  A bit stream
  1116.             not  ending at an 8-bit boundary must be padded with zeroes.
  1117.             This document provides a mechanism for noting  the  addition
  1118.             of such padding in the case of the application Content-Type,
  1119.             which has a "padding" parameter.
  1120.  
  1121.             The encoding mechanisms defined here explicitly  encode  all
  1122.             data  in  ASCII.   Thus,  for example, suppose an entity has
  1123.             header fields such as:
  1124.  
  1125.                  Content-Type: text/plain; charset=ISO-8859-1
  1126.                  Content-transfer-encoding: base64
  1127.  
  1128.             This must be interpreted to mean that the body is  a  base64
  1129.             ASCII  encoding  of  data that was originally in ISO-8859-1,
  1130.             and will be in that character set again after decoding.
  1131.  
  1132.             The following sections will define the two standard encoding
  1133.             mechanisms.    The   definition   of  new  content-transfer-
  1134.             encodings is explicitly discouraged and  should  only  occur
  1135.             when  absolutely  necessary.   All content-transfer-encoding
  1136.             namespace except that  beginning  with  "X-"  is  explicitly
  1137.             reserved  to  the  IANA  for future use.  Private agreements
  1138.             about   content-transfer-encodings   are   also   explicitly
  1139.             discouraged.
  1140.  
  1141.             Certain Content-Transfer-Encoding values may only be used on
  1142.             certain  Content-Types.   In  particular,  it  is  expressly
  1143.             forbidden to use any encodings other than "7bit", "8bit", or
  1144.             "binary"  with  any  Content-Type  that recursively includes
  1145.             other Content-Type  fields,   notably  the  "multipart"  and
  1146.             "message" Content-Types.  All encodings that are desired for
  1147.             bodies of type multipart or message  must  be  done  at  the
  1148.             innermost  level,  by encoding the actual body that needs to
  1149.             be encoded.
  1150.  
  1151.                  NOTE  ON  ENCODING   RESTRICTIONS:    Though   the
  1152.                  prohibition    against   using   content-transfer-
  1153.                  encodings on data of type multipart or message may
  1154.                  seem   overly  restrictive,  it  is  necessary  to
  1155.  
  1156.  
  1157.  
  1158.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 17]
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1165.  
  1166.  
  1167.                  prevent nested encodings, in which data are passed
  1168.                  through  an encoding algorithm multiple times, and
  1169.                  must be decoded multiple  times  in  order  to  be
  1170.                  properly    viewed.     Nested    encodings    add
  1171.                  considerable complexity  to  user  agents:   aside
  1172.                  from  the  obvious  efficiency  problems with such
  1173.                  multiple encodings, they  can  obscure  the  basic
  1174.                  structure  of  a message.  In particular, they can
  1175.                  imply  that  several   decoding   operations   are
  1176.                  necessary simply to find out what types of objects
  1177.                  a message contains.  Banning nested encodings  may
  1178.                  complicate  the  job of certain mail gateways, but
  1179.                  this seems less of a problem than  the  effect  of
  1180.                  nested encodings on user agents.
  1181.  
  1182.                  NOTE ON THE RELATIONSHIP BETWEEN CONTENT-TYPE  AND
  1183.                  CONTENT-TRANSFER-ENCODING:   It  may seem that the
  1184.                  Content-Transfer-Encoding could be  inferred  from
  1185.                  the characteristics of the Content-Type that is to
  1186.                  be encoded, or, at the very  least,  that  certain
  1187.                  Content-Transfer-Encodings  could  be mandated for
  1188.                  use with specific Content-Types. There are several
  1189.                  reasons why this is not the case. First, given the
  1190.                  varying types of transports used  for  mail,  some
  1191.                  encodings  may  be  appropriate  for some Content-
  1192.                  Type/transport combinations and  not  for  others.
  1193.                  (For  example, in an  8-bit transport, no encoding
  1194.                  would be required for text  in  certain  character
  1195.                  sets,  while  such  encodings are clearly required
  1196.                  for 7-bit SMTP.)   Second,  certain  Content-Types
  1197.                  may  require  different types of transfer encoding
  1198.                  under different circumstances. For  example,  many
  1199.                  PostScript  bodies might consist entirely of short
  1200.                  lines of 7-bit data and hence require little or no
  1201.                  encoding.   Other  PostScript  bodies  (especially
  1202.                  those using Level 2 PostScript's  binary  encoding
  1203.                  mechanism)  may  only  be  reasonably  represented
  1204.                  using a binary transport encoding. Finally,  since
  1205.                  Content-Type  is  intended  to  be  an  open-ended
  1206.                  specification mechanism, strict  specification  of
  1207.                  an association between Content-Types and encodings
  1208.                  effectively  couples  the  specification   of   an
  1209.                  application  protocol  with a specific lower-level
  1210.                  transport.  This  is  not  desirable   since   the
  1211.                  developers of a Content-Type should not have to be
  1212.                  aware of all the transports in use and what  their
  1213.  
  1214.  
  1215.  
  1216.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 18]
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1223.  
  1224.  
  1225.                  limitations are.
  1226.  
  1227.                  NOTE  ON  TRANSLATING  ENCODINGS:    The   quoted-
  1228.                  printable  and  base64  encodings  are designed so
  1229.                  that conversion between them is possible. The only
  1230.                  issue  that  arises  in  such  a conversion is the
  1231.                  handling of  line  breaks.  When  converting  from
  1232.                  quoted-printable  to  base64  a line break must be
  1233.                  converted into a CRLF sequence. Similarly, a  CRLF
  1234.                  sequence  in  base64  data must  be converted to a
  1235.                  quoted-printable  line  break,   but   ONLY   when
  1236.                  converting text data.
  1237.  
  1238.                  NOTE ON CANONICAL ENCODING MODEL:   There was some
  1239.                  confusion,   in   earlier  drafts  of  this  memo,
  1240.                  regarding the model for when email data was to  be
  1241.                  converted  to  canonical  form and encoded, and in
  1242.                  particular  how  this  process  would  affect  the
  1243.                  treatment  of CRLFs, given that the representation
  1244.                  of newlines varies greatly from system to  system.
  1245.                  For this reason, a canonical model for encoding is
  1246.                  presented as Appendix G.
  1247.  
  1248.             5.1  Quoted-Printable Content-Transfer-Encoding
  1249.  
  1250.             The Quoted-Printable encoding is intended to represent  data
  1251.             that largely consists of octets that correspond to printable
  1252.             characters in the ASCII character set.  It encodes the  data
  1253.             in  such  a way that the resulting octets are unlikely to be
  1254.             modified by mail transport.  If the data being  encoded  are
  1255.             mostly  ASCII  text,  the  encoded  form of the data remains
  1256.             largely recognizable by humans.  A body  which  is  entirely
  1257.             ASCII  may also be encoded in Quoted-Printable to ensure the
  1258.             integrity of the data should  the  message  pass  through  a
  1259.             character-translating, and/or line-wrapping gateway.
  1260.  
  1261.             In this encoding, octets are to be represented as determined
  1262.             by the following rules:
  1263.  
  1264.                  Rule #1:  (General  8-bit  representation)  Any  octet,
  1265.                  except  those  indicating a line break according to the
  1266.                  newline convention of the canonical form  of  the  data
  1267.                  being encoded, may be represented by an "=" followed by
  1268.                  a two digit hexadecimal representation of  the  octet's
  1269.                  value. The digits of the hexadecimal alphabet, for this
  1270.                  purpose, are "0123456789ABCDEF". Uppercase letters must
  1271.  
  1272.  
  1273.  
  1274.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 19]
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1281.  
  1282.  
  1283.                  be
  1284.                  used when sending hexadecimal  data,  though  a  robust
  1285.                  implementation   may   choose  to  recognize  lowercase
  1286.                  letters on receipt. Thus, for  example,  the  value  12
  1287.                  (ASCII  form feed) can be represented by "=0C", and the
  1288.                  value 61 (ASCII  EQUAL  SIGN)  can  be  represented  by
  1289.                  "=3D".   Except  when  the  following  rules  allow  an
  1290.                  alternative encoding, this rule is mandatory.
  1291.  
  1292.                  Rule #2: (Literal representation) Octets  with  decimal
  1293.                  values  of 33 through 60 inclusive, and 62 through 126,
  1294.                  inclusive, MAY be represented as the  ASCII  characters
  1295.                  which  correspond  to  those  octets (EXCLAMATION POINT
  1296.                  through LESS THAN,  and  GREATER  THAN  through  TILDE,
  1297.                  respectively).
  1298.  
  1299.                  Rule #3: (White Space): Octets with values of 9 and  32
  1300.                  MAY   be  represented  as  ASCII  TAB  (HT)  and  SPACE
  1301.                  characters,  respectively,   but   MUST   NOT   be   so
  1302.                  represented at the end of an encoded line. Any TAB (HT)
  1303.                  or SPACE characters on an encoded  line  MUST  thus  be
  1304.                  followed  on  that  line  by a printable character.  In
  1305.                  particular, an "=" at  the  end  of  an  encoded  line,
  1306.                  indicating  a  soft line break (see rule #5) may follow
  1307.                  one or more TAB (HT) or SPACE characters.   It  follows
  1308.                  that  an  octet with value 9 or 32 appearing at the end
  1309.                  of an encoded line must  be  represented  according  to
  1310.                  Rule  #1.  This  rule  is  necessary  because some MTAs
  1311.                  (Message Transport  Agents,  programs  which  transport
  1312.                  messages from one user to another, or perform a part of
  1313.                  such transfers) are known to pad  lines  of  text  with
  1314.                  SPACEs,  and  others  are known to remove "white space"
  1315.                  characters from the end  of  a  line.  Therefore,  when
  1316.                  decoding  a  Quoted-Printable  body, any trailing white
  1317.                  space on a line must be deleted, as it will necessarily
  1318.                  have been added by intermediate transport agents.
  1319.  
  1320.                  Rule #4 (Line Breaks): A line break  in  a  text  body,
  1321.                  independent of what its representation is following the
  1322.                  canonical representation of  the  data  being  encoded,
  1323.                  must be represented by a (RFC 822) line break, which is
  1324.                  a CRLF  sequence,  in  the  Quoted-Printable  encoding.
  1325.                  Since  the canonical representation of types other than
  1326.                  text do not generally  include  the  representation  of
  1327.                  line  breaks,  no  hard line breaks should occur in the
  1328.                  quoted-printable encoding of  such  types.  Of  course,
  1329.  
  1330.  
  1331.  
  1332.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 20]
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1339.  
  1340.  
  1341.                  occurences  of "=0D", "=0A", "=0A=0D" and "=0D=0A" will
  1342.                  eventually be encountered.  In general, however, base64
  1343.                  is preferred over quoted-printable for binary data.
  1344.  
  1345.                  Note that many implementations may elect to encode  the
  1346.                  local representation of various content types directly,
  1347.                  as described in Appendix G.  In  particular,  this  may
  1348.                  apply  to  plain  text  material  on  systems  that use
  1349.                  newline conventions other than CRLF delimiters. Such an
  1350.                  implementation  is  permissible,  but the generation of
  1351.                  line breaks must be generalized to account for the case
  1352.                  where  alternate  representations  of newline sequences
  1353.                  are used.
  1354.  
  1355.                  Rule  #5  (Soft  Line  Breaks):  The   Quoted-Printable
  1356.                  encoding REQUIRES that encoded lines be no more than 76
  1357.                  characters long. If longer lines are to be encoded with
  1358.                  the  Quoted-Printable encoding, 'soft' line breaks must
  1359.                  be used. An equal sign  as  the  last  character  on  a
  1360.                  encoded  line indicates such a non-significant ('soft')
  1361.                  line break in the encoded text. Thus if the "raw"  form
  1362.                  of the line is a single unencoded line that says:
  1363.  
  1364.                       Now's the time for all folk to come to the aid of
  1365.                       their country.
  1366.  
  1367.                  This  can  be  represented,  in  the   Quoted-Printable
  1368.                  encoding, as
  1369.  
  1370.                       Now's the time =
  1371.                       for all folk to come=
  1372.                        to the aid of their country.
  1373.  
  1374.                  This provides a mechanism with  which  long  lines  are
  1375.                  encoded  in  such  a  way as to be restored by the user
  1376.                  agent.  The 76  character  limit  does  not  count  the
  1377.                  trailing   CRLF,   but  counts  all  other  characters,
  1378.                  including any equal signs.
  1379.  
  1380.             Since the hyphen character ("-") is represented as itself in
  1381.             the  Quoted-Printable  encoding,  care  must  be taken, when
  1382.             encapsulating a quoted-printable encoded body in a multipart
  1383.             entity,  to  ensure that the encapsulation boundary does not
  1384.             appear anywhere in the encoded body.  (A good strategy is to
  1385.             choose a boundary that includes a character sequence such as
  1386.             "=_" which can never appear in a quoted-printable body.  See
  1387.  
  1388.  
  1389.  
  1390.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 21]
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1397.  
  1398.  
  1399.             the   definition   of   multipart  messages  later  in  this
  1400.             document.)
  1401.  
  1402.                  NOTE:  The  quoted-printable  encoding  represents
  1403.                  something  of a compromise between readability and
  1404.                  reliability in transport.  Bodies encoded with the
  1405.                  quoted-printable  encoding will work reliably over
  1406.                  most mail gateways, but  may  not  work  perfectly
  1407.                  over  a  few  gateways,  notably  those  involving
  1408.                  translation into EBCDIC.  (In  theory,  an  EBCDIC
  1409.                  gateway  could  decode a quoted-printable body and
  1410.                  re-encode it using base64, but  such  gateways  do
  1411.                  not  yet  exist.)  A higher level of confidence is
  1412.                  offered by the  base64  Content-Transfer-Encoding.
  1413.                  A way to get reasonably reliable transport through
  1414.                  EBCDIC  gateways  is  to  also  quote  the   ASCII
  1415.                  characters
  1416.  
  1417.                  !"#$@[\]^`{|}~
  1418.  
  1419.                  according to rule #1.  See  Appendix  B  for  more
  1420.                  information.
  1421.  
  1422.             Because quoted-printable data is  generally  assumed  to  be
  1423.             line-oriented,  it is to be expected that the breaks between
  1424.             the lines  of  quoted  printable  data  may  be  altered  in
  1425.             transport,  in  the  same  manner  that  plain text mail has
  1426.             always been altered in Internet mail  when  passing  between
  1427.             systems   with   differing  newline  conventions.   If  such
  1428.             alterations are likely to constitute  a  corruption  of  the
  1429.             data,  it  is  probably  more  sensible  to  use  the base64
  1430.             encoding rather than the quoted-printable encoding.
  1431.  
  1432.             WARNING TO IMPLEMENTORS:  If  binary  data  are  encoded  in
  1433.             quoted-printable,  care  must  be  taken to encode CR and LF
  1434.             characters as "=0D" and "=0A", respectively.  In particular,
  1435.             a  CRLF  sequence  in  binary  data  should  be  encoded  as
  1436.             "=0D=0A".  Otherwise, if CRLF were  represented  as  a  hard
  1437.             line  break,  it  might  be incorrectly decoded on platforms
  1438.             with different line break conventions.
  1439.  
  1440.             For formalists,  the  syntax  of  quoted-printable  data  is
  1441.             describe by the following grammar:
  1442.  
  1443.             quoted-printable := ([*(ptext / SPACE /  TAB)  ptext]  ["="]
  1444.             CRLF)
  1445.  
  1446.  
  1447.  
  1448.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 22]
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1455.  
  1456.  
  1457.                  ; Maximum line length of 78 characters
  1458.  
  1459.             ptext := octet / <any ASCII character except "=", SPACE,  or
  1460.             TAB>
  1461.                  ; characters in "qp-iffy" are also not recommended
  1462.  
  1463.             qp-iffy :=       "[" /  "]" /  <"> /  "\" /  "@"
  1464.                  /  "!" /  "#" /  "$" /  "^" /  "'"
  1465.                  /  "{" /  "|" /  "}" /  "~" /  "`"
  1466.  
  1467.             octet := "=" 2(DIGIT / "A" / "B" / "C" / "D" / "E" / "F")
  1468.                  ; octet must be used for characters > 127, =, SPACE, or
  1469.             TAB,
  1470.                  ; and is recommended for the "qp-iffy" characters too.
  1471.  
  1472.             5.2  Base64 Content-Transfer-Encoding
  1473.  
  1474.             The  Base64   Content-Transfer-Encoding   is   designed   to
  1475.             represent  arbitrary  sequences  of octets in a form that is
  1476.             not humanly readable.  The encoding and decoding  algorithms
  1477.             are simple, but the encoded data are consistently only about
  1478.             33 percent larger than the unencoded data.  This encoding is
  1479.             virtually identical to the one used in Privacy Enhanced Mail
  1480.             (PEM) applications, as defined in  RFC  1113.    The  base64
  1481.             encoding  is adapted from RFC 1113, with one change:  base64
  1482.             eliminates the "*" mechanism for embedded clear text.
  1483.  
  1484.             A 65-character subset of US-ASCII is used, enabling  6  bits
  1485.             to  be  represented per printable character. (The extra 65th
  1486.             character, "=", is used  to  signify  a  special  processing
  1487.             function.)
  1488.  
  1489.                  NOTE:  This subset has the important property that
  1490.                  it  is  represented identically in all versions of
  1491.                  ISO 646, including US ASCII, and all characters in
  1492.                  the subset are also represented identically in all
  1493.                  versions of  EBCDIC.    Other  popular  encodings,
  1494.                  such  as the encoding used by the UUENCODE utility
  1495.                  and the base85 encoding specified as part of Level
  1496.                  2  PostScript,  do not share these properties, and
  1497.                  thus do not fulfill the portability requirements a
  1498.                  binary transport encoding for mail must meet.
  1499.  
  1500.             The encoding process represents 24-bit groups of input  bits
  1501.             as  output  strings of 4 encoded characters. Proceeding from
  1502.             left  to  right,  a  24-bit  input  group   is   formed   by
  1503.  
  1504.  
  1505.  
  1506.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 23]
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1513.  
  1514.  
  1515.             concatenating  3  8-bit input groups. These 24 bits are then
  1516.             treated as 4 concatenated 6-bit groups,  each  of  which  is
  1517.             translated  into a single digit in the base64 alphabet. When
  1518.             encoding a bit stream  via  the  base64  encoding,  the  bit
  1519.             stream  must  be  presumed  to  be  ordered  with  the most-
  1520.             significant-bit first.  That is, the first bit in the stream
  1521.             will be the high-order bit in the first byte, and the eighth
  1522.             bit will be the low-order bit in the first byte, and so on.
  1523.  
  1524.             Each 6-bit group is used as an index into  an  array  of  64
  1525.             printable  characters. The character referenced by the index
  1526.             is placed in the output string. These characters, identified
  1527.             in  Table  1,  below,  are  selected so as to be universally
  1528.             representable,  and  the  set   excludes   characters   with
  1529.             particular  significance to SMTP (e.g., ".", "CR", "LF") and
  1530.             to the encapsulation boundaries  defined  in  this  document
  1531.             (e.g., "-").
  1532.  
  1533.                             Table 1: The Base64 Alphabet
  1534.  
  1535.                Value Encoding  Value  Encoding   Value  Encoding   Value
  1536.             Encoding
  1537.                    0 A            17 R            34 i            51 z
  1538.                    1 B            18 S            35 j            52 0
  1539.                    2 C            19 T            36 k            53 1
  1540.                    3 D            20 U            37 l            54 2
  1541.                    4 E            21 V            38 m            55 3
  1542.                    5 F            22 W            39 n            56 4
  1543.                    6 G            23 X            40 o            57 5
  1544.                    7 H            24 Y            41 p            58 6
  1545.                    8 I            25 Z            42 q            59 7
  1546.                    9 J            26 a            43 r            60 8
  1547.                   10 K            27 b            44 s            61 9
  1548.                   11 L            28 c            45 t            62 +
  1549.                   12 M            29 d            46 u            63 /
  1550.                   13 N            30 e            47 v
  1551.                   14 O            31 f            48 w         (pad) =
  1552.                   15 P            32 g            49 x
  1553.                   16 Q            33 h            50 y
  1554.  
  1555.             The output stream (encoded bytes)  must  be  represented  in
  1556.             lines  of  no more than 76 characters each.  All line breaks
  1557.             or other characters not found in Table 1 must be ignored  by
  1558.             decoding  software.   In  base64 data, characters other than
  1559.             those in  Table  1,  line  breaks,  and  other  white  space
  1560.             probably  indicate  a  transmission  error,  about  which  a
  1561.  
  1562.  
  1563.  
  1564.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 24]
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1571.  
  1572.  
  1573.             warning  message  or  even  a  message  rejection  might  be
  1574.             appropriate under some circumstances.
  1575.  
  1576.             Special processing is performed if fewer than  24  bits  are
  1577.             available  at  the  end  of  the data being encoded.  A full
  1578.             encoding quantum is always completed at the end of  a  body.
  1579.             When  fewer  than  24  input  bits are available in an input
  1580.             group, zero bits  are  added  (on  the  right)  to  form  an
  1581.             integral  number of 6-bit groups.  Padding at the end of the
  1582.             data is performed using  the  '='  character.     Since  all
  1583.             base64  input  is  an  integral  number  of octets, only the
  1584.             following cases can arise: (1) the final quantum of encoding
  1585.             input  is  an  integral multiple of 24 bits; here, the final
  1586.             unit of encoded output will be an  integral  multiple  of  4
  1587.             characters  with  no  "="  padding, (2) the final quantum of
  1588.             encoding input is exactly 8 bits; here, the  final  unit  of
  1589.             encoded  output  will  be two characters followed by two "="
  1590.             padding characters, or (3) the  final  quantum  of  encoding
  1591.             input  is  exactly  16 bits; here, the final unit of encoded
  1592.             output will be three characters followed by one "="  padding
  1593.             character.
  1594.  
  1595.             Because it is used only for padding at the end of the  data,
  1596.             the  occurrence  of  any  '='  characters  may  be  taken as
  1597.             evidence that the end of the data has been reached  (without
  1598.             truncation  in transit).  To offer the same assurance in the
  1599.             event that padding is not necessary, any  base64  data  that
  1600.             does  not require padding may be terminated by a sequence of
  1601.             four '=' characters ("===="),  though  such  termination  is
  1602.             optional.
  1603.  
  1604.             Care must be taken to use the proper octets for line  breaks
  1605.             if base64 encoding is applied directly to text material that
  1606.             has not been converted to  canonical  form.  In  particular,
  1607.             text line breaks must be converted into CRLF sequences prior
  1608.             to base64 encoding. The important thing to note is that this
  1609.             may  be  done directly by the encoder rather than in a prior
  1610.             canonicalization step in some implementations.
  1611.  
  1612.                  NOTE: There is no  need  to  worry  about  quoting
  1613.                  apparent  encapsulation  boundaries within base64-
  1614.                  encoded parts of  multipart  entities  because  no
  1615.                  hyphen characters are used in the base64 encoding.
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 25]
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1629.  
  1630.  
  1631.             6    Additional Content- Header Fields
  1632.  
  1633.             6.1  Content-ID Header Field
  1634.  
  1635.             In constructing a high-level user agent, it may be desirable
  1636.             to   allow   one   body   to   make  reference  to  another.
  1637.             Accordingly, bodies may be labeled  using  the  "Content-ID"
  1638.             header  field,  which  is  syntactically  identical  to  the
  1639.             "Message-ID" header field:
  1640.  
  1641.             Content-ID := msg-id
  1642.  
  1643.             Like  the  Message-ID  values,  Content-ID  values  must  be
  1644.             generated to be world-unique.
  1645.  
  1646.             The Content-ID value may be used  for  uniquely  identifying
  1647.             MIME  entities in several contexts, particularly for caching
  1648.             data  referenced  by  the  message/external-body  mechanism.
  1649.             Although  the  Content-ID  header is generally optional, its
  1650.             use is mandatory in implementations which generate  data  of
  1651.             the   optional  MIME  Content-type  "message/external-body".
  1652.             That is,  each  message/external-body  entity  must  have  a
  1653.             Content-ID field to permit caching of such data.
  1654.  
  1655.             It is also  worth  noting  that  the  Content-ID  value  has
  1656.             special  semantics  in the case of the multipart/alternative
  1657.             content-type.  This is explained  in  the  section  of  this
  1658.             document dealing with multipart/alternative.
  1659.  
  1660.             6.2  Optional Content-Description Header Field
  1661.  
  1662.             The ability to associate some descriptive information with a
  1663.             given body is often desirable. For example, it may be useful
  1664.             to mark an "image" body as "a picture of the  Space  Shuttle
  1665.             Endeavor."    Such  text  may  be  placed  in  the  Content-
  1666.             Description header field.
  1667.  
  1668.             Content-Description := *text
  1669.  
  1670.             The description is presumed to  be  given  in  the  US-ASCII
  1671.             character  set,  although  the  mechanism specified in [RFC-
  1672.             1342]  may  be  used  for  non-US-ASCII  Content-Description
  1673.             values.
  1674.  
  1675.             6.3  Optional Content-MD5 Header Field
  1676.  
  1677.  
  1678.  
  1679.  
  1680.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 26]
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1687.  
  1688.  
  1689.             Despite all of the mechanisms MIME provides  to  attempt  to
  1690.             protect  data  from  being  damaged  in  the course of email
  1691.             transport, it is still desirable to  have  a  mechanism  for
  1692.             verifying that the data, once decoded, are intact.  For this
  1693.             reason, MIME defines the use of an  optional  header  field,
  1694.             Content-MD5,  whch  may be used as a message integrity check
  1695.             (MIC), to verify that the decoded data  are  the  same  data
  1696.             that were initially sent.
  1697.  
  1698.             MD5 is an algorithm for computing a 128 bit "fingerprint" of
  1699.             arbitrary-length data, with a high degree of confidence that
  1700.             any alterations in the data will be reflected in alterations
  1701.             in  the fingerprint.  The algorithm itself is defined in RFC
  1702.             1321  [RFC-1321].  This  document  further   specifies   the
  1703.             application  of that algorithm for use as an integrity check
  1704.             for MIME mail.
  1705.  
  1706.             The MD5 algorithm is computed on the canonical form  of  the
  1707.             data.   In  particular,  this means that the sender computes
  1708.             the MIC on  the  raw  data,  before  applying  any  content-
  1709.             transfer-encoding,  and  that the receiver also computes the
  1710.             MIC on the raw data,  after  undoing  any  content-transfer-
  1711.             encodng.  For  text  data, the algorithm must be computed on
  1712.             data in which the canonical form for newlines applies,  that
  1713.             is, in which each newline is represented by CRLF.
  1714.  
  1715.             The output of the MD5 algorithm  is  a  128  bit  signature.
  1716.             When  viewed  in network byte order (big-endian order), this
  1717.             yields a sequence of 16 octets of  binary  data.   These  16
  1718.             octets   must  then  be  encoded  according  to  the  base64
  1719.             algorithm in order to obtain a value  that  can  legally  be
  1720.             placed  in  a  message header field.  Thus, if the data in a
  1721.             MIME entity has an MD5 MIC that consists of  the  (unlikely)
  1722.             16 octets "Check Integrity!", then that MIME entity's header
  1723.             could contain the field
  1724.  
  1725.                  Content-MD5:  Q2hlY2sgSW50ZWdyaXR5IQ==
  1726.  
  1727.             The Content-MD5 field is completely optional, but its use is
  1728.             recommened  wherever  complete  data integrity is essential.
  1729.             If present, a MIME-conformant reader may choose to use it to
  1730.             verify  that  the  contents  of  a MIME entity have not been
  1731.             modified during transport.
  1732.  
  1733.             Textual data is regularly altered in the normal delivery  of
  1734.             mail (See Appendix B). Because the addition of even trailing
  1735.  
  1736.  
  1737.  
  1738.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 27]
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1745.  
  1746.  
  1747.             white space will result in a failed MIC, use of  a  content-
  1748.             transfer-encoding on all MIC protected mail is recommended.
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 28]
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1803.  
  1804.  
  1805.             7    The Predefined Content-Type Values
  1806.  
  1807.             This document defines seven initial Content-Type values  and
  1808.             an  extension  mechanism  for private or experimental types.
  1809.             Further standard types must  be  defined  by  new  published
  1810.             specifications.   It is expected that most innovation in new
  1811.             types of mail will take place as subtypes of the seven types
  1812.             defined  here.   The  most  essential characteristics of the
  1813.             seven content-types are summarized in Appendix F.
  1814.  
  1815.             7.1  The Text Content-Type
  1816.  
  1817.             The text Content-Type is intended for sending material which
  1818.             is  principally textual in form.  It is the default Content-
  1819.             Type.  A "charset" parameter may be  used  to  indicate  the
  1820.             character set of the body text.  The primary subtype of text
  1821.             is "plain".  This indicates plain (unformatted)  text.   The
  1822.             default  Content-Type  for  Internet  mail  is  "text/plain;
  1823.             charset=us-ascii".
  1824.  
  1825.             Beyond plain text, there are many formats  for  representing
  1826.             what might be known as "extended text" -- text with embedded
  1827.             formatting and  presentation  information.   An  interesting
  1828.             characteristic of many such representations is that they are
  1829.             to some extent  readable  even  without  the  software  that
  1830.             interprets  them.   It is useful, then, to distinguish them,
  1831.             at the highest level, from such unreadable data  as  images,
  1832.             audio,  or  text  represented in an unreadable form.  In the
  1833.             absence  of  appropriate  interpretation  software,  it   is
  1834.             reasonable to show subtypes of text to the user, while it is
  1835.             not reasonable to do so with most nontextual data.
  1836.  
  1837.             Such formatted textual  data  should  be  represented  using
  1838.             subtypes  of text.  Plausible subtypes of text are typically
  1839.             given by the common name of the representation format, e.g.,
  1840.             "text/richtext" [RFC-1341].
  1841.  
  1842.             7.1.1     The charset parameter
  1843.  
  1844.             A critical parameter that may be specified in  the  Content-
  1845.             Type  field  for  text  data  is the character set.  This is
  1846.             specified with a "charset" parameter, as in:
  1847.  
  1848.                  Content-type: text/plain; charset=us-ascii
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 29]
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1861.  
  1862.  
  1863.             Unlike some  other  parameter  values,  the  values  of  the
  1864.             charset  parameter  are  NOT  case  sensitive.   The default
  1865.             character set, which must be assumed in  the  absence  of  a
  1866.             charset parameter, is US-ASCII.
  1867.  
  1868.             This RFC specifies the definition of the  charset  parameter
  1869.             for  the  purposes  of MIME to be a unique mapping of a byte
  1870.             stream to glyphs, a mapping which does not require  external
  1871.             profiling  information.  For example, bare "ISO 10646" can't
  1872.             be  the  charset  parameter,  because  it  requires  several
  1873.             language information for the unique mapping to glyphs.
  1874.  
  1875.             An initial list of predefined character  set  names  can  be
  1876.             found at the end of this section.  Additional character sets
  1877.             may be registered with IANA  as  described  in  Appendix  E,
  1878.             although the standardization of their use requires the usual
  1879.             IAB  review  and  approval.  Note  that  if  the   specified
  1880.             character  set  includes  8-bit  data,  a  Content-Transfer-
  1881.             Encoding header field and a corresponding  encoding  on  the
  1882.             data  are  required  in  order to transmit the body via some
  1883.             mail transfer protocols, such as SMTP.
  1884.  
  1885.             The default character set, US-ASCII, has been the subject of
  1886.             some  confusion  and  ambiguity  in the past.  Not only were
  1887.             there some ambiguities in the definition,  there  have  been
  1888.             wide  variations  in  practice.   In order to eliminate such
  1889.             ambiguity and variations  in  the  future,  it  is  strongly
  1890.             recommended  that  new  user  agents  explicitly  specify  a
  1891.             character set via the Content-Type header field.  "US-ASCII"
  1892.             does not indicate an arbitrary seven-bit character code, but
  1893.             specifies that the body uses character coding that uses  the
  1894.             exact  correspondence  of  codes  to characters specified in
  1895.             ASCII.  National use variations of ISO 646 [ISO-646] are NOT
  1896.             ASCII   and   their  use  in  Internet  mail  is  explicitly
  1897.             discouraged. The omission of the ISO 646  character  set  is
  1898.             deliberate  in  this regard.  The character set name of "US-
  1899.             ASCII" explicitly refers  to ANSI X3.4-1986 [US-ASCII] only.
  1900.             The  character  set name "ASCII" is reserved and must not be
  1901.             used for any purpose.
  1902.  
  1903.                  NOTE: RFC 821 explicitly  specifies  "ASCII",  and
  1904.                  references   an  earlier  version  of the American
  1905.                  Standard.  Insofar  as  one  of  the  purposes  of
  1906.                  specifying  a Content-Type and character set is to
  1907.                  permit the receiver to unambiguously determine how
  1908.                  the  sender  intended  the  coded  message  to  be
  1909.  
  1910.  
  1911.  
  1912.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 30]
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1919.  
  1920.  
  1921.                  interpreted, assuming anything other than  "strict
  1922.                  ASCII" as the default would risk unintentional and
  1923.                  incompatible changes to the semantics of  messages
  1924.                  now  being  transmitted.    This also implies that
  1925.                  messages containing characters coded according  to
  1926.                  national  variations  on  ISO  646, or using code-
  1927.                  switching procedures (e.g., those of ISO 2022), as
  1928.                  well   as   8-bit  or  multiple   octet  character
  1929.                  encodings MUST use an  appropriate  character  set
  1930.                  specification   to   be   consistent   with   this
  1931.                  specification.
  1932.  
  1933.             The complete US-ASCII character set is listed in [US-ASCII].
  1934.             Note  that  the control characters including DEL (0-31, 127)
  1935.             have no defined meaning  apart  from  the  combination  CRLF
  1936.             (ASCII  values 13 and 10) indicating a new line.  Two of the
  1937.             characters have de facto meanings in wide use: FF (12) often
  1938.             means  "start  subsequent  text  on  the  beginning of a new
  1939.             page"; and TAB or HT (9) often  (though  not  always)  means
  1940.             "move  the  cursor  to  the  next available column after the
  1941.             current position where the column number is a multiple of  8
  1942.             (counting  the  first column as column 0)." Apart from this,
  1943.             any use of the control characters or DEL in a body  must  be
  1944.             part   of   a  private  agreement  between  the  sender  and
  1945.             recipient.  Such  private  agreements  are  discouraged  and
  1946.             should  be  replaced  by  the  other  capabilities  of  this
  1947.             document.
  1948.  
  1949.                  NOTE:  Beyond US-ASCII, an enormous  proliferation
  1950.                  of  character  sets is possible. It is the opinion
  1951.                  of the IETF working group that a large  number  of
  1952.                  character  sets  is  NOT  a  good thing.  We would
  1953.                  prefer to specify a single character set that  can
  1954.                  be  used  universally  for representing all of the
  1955.                  world's    languages    in    electronic     mail.
  1956.                  Unfortunately,   existing   practice   in  several
  1957.                  communities seems to point to the continued use of
  1958.                  multiple  character  sets in the near future.  For
  1959.                  this reason, we define names for a small number of
  1960.                  character sets for which a strong constituent base
  1961.                  exists.    It is our hope that ISO 10646  or  some
  1962.                  other effort will eventually define a single world
  1963.                  character set which can then be specified for  use
  1964.                  in  Internet  mail,  but  in  the  advance of that
  1965.                  definition we cannot specify the use of ISO 10646,
  1966.                  Unicode,   or   any   other  character  set  whose
  1967.  
  1968.  
  1969.  
  1970.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 31]
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  1977.  
  1978.  
  1979.                  definition is, as of this writing, incomplete.
  1980.  
  1981.             The defined charset values are:
  1982.  
  1983.                  US-ASCII -- as defined in [US-ASCII].
  1984.  
  1985.                  ISO-8859-X -- where "X"  is  to  be  replaced,  as
  1986.                       necessary,  for  the  parts of ISO-8859 [ISO-
  1987.                       8859].  Note that the ISO 646 character  sets
  1988.                       have  deliberately  been  omitted in favor of
  1989.                       their  8859  replacements,  which   are   the
  1990.                       designated  character sets for Internet mail.
  1991.                       As of the publication of this  document,  the
  1992.                       legitimate  values  for  "X" are the digits 1
  1993.                       through 9.
  1994.  
  1995.             Note that the character set used,  if  anything  other  than
  1996.             US-ASCII,   must  always  be  explicitly  specified  in  the
  1997.             Content-Type field.
  1998.  
  1999.             No other character set name may be  used  in  Internet  mail
  2000.             without  the  publication  of a formal specification and its
  2001.             registration with IANA as described in  Appendix  E,  or  by
  2002.             private agreement, in which case the character set name must
  2003.             begin with "X-".
  2004.  
  2005.             Implementors are discouraged  from  defining  new  character
  2006.             sets for mail use unless absolutely necessary.
  2007.  
  2008.             The "charset" parameter has been defined primarily  for  the
  2009.             purpose  of  textual  data, and is described in this section
  2010.             for that reason.   However,  it  is  conceivable  that  non-
  2011.             textual  data might also wish to specify a charset value for
  2012.             some purpose, in which  case  the  same  syntax  and  values
  2013.             should be used.
  2014.  
  2015.             In  general,  mail-sending  software  must  always  use  the
  2016.             "lowest  common  denominator"  character  set possible.  For
  2017.             example, if a body contains  only  US-ASCII  characters,  it
  2018.             must  be  marked as being in the US-ASCII character set, not
  2019.             ISO-8859-1, which, like all the ISO-8859 family of character
  2020.             sets,  is  a  superset  of  US-ASCII.   More generally, if a
  2021.             widely-used character set is a subset of  another  character
  2022.             set,  and a body contains only characters in the widely-used
  2023.             subset, it must be labeled as being  in  that  subset.  This
  2024.             will increase the chances that the recipient will be able to
  2025.  
  2026.  
  2027.  
  2028.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 32]
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2035.  
  2036.  
  2037.             view the mail correctly.
  2038.  
  2039.             7.1.2     The Text/plain subtype
  2040.  
  2041.             The primary subtype of text   is  "plain".   This  indicates
  2042.             plain  (unformatted)  text.  The  default  Content-Type  for
  2043.             Internet  mail,  "text/plain;  charset=us-ascii",  describes
  2044.             existing Internet practice.  That is, it is the type of body
  2045.             defined by RFC 822.
  2046.  
  2047.             No other text subtype is defined by this document.
  2048.  
  2049.             The formal grammar for the  content-type  header  field  for
  2050.             text is as follows:
  2051.  
  2052.             text-type := "text"  "/"  text-subtype  [";"  "charset"  "="
  2053.             charset]
  2054.  
  2055.             text-subtype := "plain" / "richtext"
  2056.  
  2057.             charset := "us-ascii" / "iso-8859-1" / "iso-8859-2" /  "iso-
  2058.             8859-3"
  2059.                  / "iso-8859-4" / "iso-8859-5" /  "iso-8859-6"  /  "iso-
  2060.             8859-7"
  2061.                  / "iso-8859-8" / "iso-8859-9" / extension-token
  2062.                  ; case insensitive
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 33]
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2093.  
  2094.  
  2095.             7.2  The Multipart Content-Type
  2096.  
  2097.             In the case of multiple part entities, in which one or  more
  2098.             different  sets  of  data  are  combined in a single body, a
  2099.             "multipart" Content-Type field must appear in  the  entity's
  2100.             header. The body must then contain one or more "body parts,"
  2101.             each preceded by an encapsulation boundary, and the last one
  2102.             followed  by  a  closing boundary.  Each part starts with an
  2103.             encapsulation  boundary,  and  then  contains  a  body  part
  2104.             consisting  of   header area, a blank line, and a body area.
  2105.             Thus a body part is similar to an RFC 822 message in syntax,
  2106.             but different in meaning.
  2107.  
  2108.             A body part is NOT to be interpreted as  actually  being  an
  2109.             RFC  822  message.   To  begin  with,  NO  header fields are
  2110.             actually required in body parts.  A body  part  that  starts
  2111.             with  a blank line, therefore, is allowed and is a body part
  2112.             for which all default values are to be assumed.  In  such  a
  2113.             case,  the  absence  of  a Content-Type header field implies
  2114.             that the corresponding body is  plain  US-ASCII  text.   The
  2115.             only  header fields that have defined meaning for body parts
  2116.             are those the names of  which  begin  with  "Content-".  All
  2117.             other  header  fields  are  generally  to be ignored in body
  2118.             parts.  Although they should generally be retained  in  mail
  2119.             processing,  they may be discarded by gateways if necessary.
  2120.             Such other fields are permitted to appear in body parts  but
  2121.             must  not  be  depended  on.  "X-" fields may be created for
  2122.             experimental or private purposes, with the recognition  that
  2123.             the information they contain may be lost at some gateways.
  2124.  
  2125.                  The distinction between an RFC 822 message  and  a
  2126.                  body  part  is  subtle,  but  important. A gateway
  2127.                  between Internet and X.400 mail, for example, must
  2128.                  be able to tell the difference between a body part
  2129.                  that contains  an  image  and  a  body  part  that
  2130.                  contains  an  encapsulated  message,  the  body of
  2131.                  which is an image.   In  order  to  represent  the
  2132.                  latter,  the  body  part  must have "Content-Type:
  2133.                  message", and its body (after the blank line) must
  2134.                  be   the   encapsulated   message,  with  its  own
  2135.                  "Content-Type: image" header field.   The  use  of
  2136.                  similar   syntax  facilitates  the  conversion  of
  2137.                  messages to body parts, and vice  versa,  but  the
  2138.                  distinction  between the two must be understood by
  2139.                  implementors.  (For the special case in which  all
  2140.                  parts actually are messages, a "digest" subtype is
  2141.  
  2142.  
  2143.  
  2144.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 34]
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2151.  
  2152.  
  2153.                  also defined.)
  2154.  
  2155.             As stated previously, each  body  part  is  preceded  by  an
  2156.             encapsulation boundary.  The encapsulation boundary MUST NOT
  2157.             appear inside any of the encapsulated parts.   Thus,  it  is
  2158.             crucial  that  the  composing  agent  be  able to choose and
  2159.             specify the unique boundary that will separate the parts.
  2160.  
  2161.             All present and future subtypes of the "multipart" type must
  2162.             use  an  identical  syntax.  Subtypes  may  differ  in their
  2163.             semantics, and may impose additional restrictions on syntax,
  2164.             but  must  conform  to the required syntax for the multipart
  2165.             type.  This requirement ensures  that  all  conformant  user
  2166.             agents  will  at least be able to recognize and separate the
  2167.             parts of any  multipart  entity,  even  of  an  unrecognized
  2168.             subtype.
  2169.  
  2170.             As stated in the definition of the Content-Transfer-Encoding
  2171.             field, no encoding other than "7bit", "8bit", or "binary" is
  2172.             permitted for entities of type "multipart".   The  multipart
  2173.             delimiters and header fields are always represented as 7-bit
  2174.             ASCII in any case (though they may encode non-ASCII text  as
  2175.             per  [RFC-1342]),  and  data  within  the  body parts can be
  2176.             encoded on  a  part-by-part  basis,  with  Content-Transfer-
  2177.             Encoding fields for each appropriate body part.
  2178.  
  2179.             Mail gateways, relays, and other mail  handling  agents  are
  2180.             commonly  known  to alter the top-level header of an RFC 822
  2181.             message.   In particular, they frequently  add,  remove,  or
  2182.             reorder  header  fields.   Such  alterations  are explicitly
  2183.             forbidden for the body part headers embedded in  the  bodies
  2184.             of messages of type "multipart."
  2185.  
  2186.             7.2.1     Multipart:  The common syntax
  2187.  
  2188.             All subtypes of "multipart" share a common  syntax,  defined
  2189.             in  this  section.   A simple example of a multipart message
  2190.             also appears in this section.  An example of a more  complex
  2191.             multipart message is given in Appendix C.
  2192.  
  2193.             The Content-Type field for multipart  entities requires  one
  2194.             parameter,   "boundary",   which  is  used  to  specify  the
  2195.             encapsulation  boundary.   The  encapsulation  boundary   is
  2196.             defined   as  a  line  consisting  entirely  of  two  hyphen
  2197.             characters ("-", decimal code 45) followed by  the  boundary
  2198.             parameter value from the Content-Type header field.
  2199.  
  2200.  
  2201.  
  2202.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 35]
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2209.  
  2210.  
  2211.                  NOTE:  The hyphens  are  for  rough  compatibility
  2212.                  with   the  earlier  RFC  934  method  of  message
  2213.                  encapsulation, and for ease of searching  for  the
  2214.                  boundaries  in  some  implementations. However, it
  2215.                  should be noted that multipart  messages  are  NOT
  2216.                  completely compatible with RFC 934 encapsulations;
  2217.                  in particular, they do not obey  RFC  934  quoting
  2218.                  conventions  for  embedded  lines  that begin with
  2219.                  hyphens.  This mechanism was chosen over  the  RFC
  2220.                  934  mechanism  because the latter causes lines to
  2221.                  grow with each level of quoting.  The  combination
  2222.                  of   this   growth   with   the   fact  that  SMTP
  2223.                  implementations sometimes wrap long lines made the
  2224.                  RFC  934 mechanism unsuitable for use in the event
  2225.                  that deeply-nested multipart structuring  is  ever
  2226.                  desired.
  2227.  
  2228.             WARNING TO IMPLEMENTORS:  The grammar for parameters on  the
  2229.             Content-type  field  is  such  that it is often necessary to
  2230.             enclose the boundaries in quotes on the  Content-type  line.
  2231.             This is not always necessary, but never hurts.  Implementors
  2232.             should be sure to study the grammar carefully  in  order  to
  2233.             avoid producing illegal Content-type fields. Thus, a typical
  2234.             multipart Content-Type header field might look like this:
  2235.  
  2236.                  Content-Type: multipart/mixed;
  2237.                       boundary=gc0p4Jq0M2Yt08jU534c0p
  2238.  
  2239.             But the following is illegal:
  2240.  
  2241.                  Content-Type: multipart/mixed;
  2242.                       boundary=gc0p4Jq0M:2Yt08jU534c0p
  2243.  
  2244.             (because of the colon) and must instead be represented as
  2245.  
  2246.                  Content-Type: multipart/mixed;
  2247.                       boundary="gc0p4Jq0M:2Yt08jU534c0p"
  2248.  
  2249.             This indicates that the entity consists  of  several  parts,
  2250.             each itself with a structure that is syntactically identical
  2251.             to an RFC 822 message, except that the header area might  be
  2252.             completely  empty,  and  that the parts are each preceded by
  2253.             the line
  2254.  
  2255.                  --gc0p4Jq0M:2Yt08jU534c0p
  2256.  
  2257.  
  2258.  
  2259.  
  2260.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 36]
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2267.  
  2268.  
  2269.             Note that the  encapsulation  boundary  must  occur  at  the
  2270.             beginning  of  a line, i.e., following a CRLF, and that that
  2271.             initial CRLF is considered to be part of  the  encapsulation
  2272.             boundary  rather  than  part  of  the preceding part.    The
  2273.             boundary must be followed immediately either by another CRLF
  2274.             and the header fields for the next part, or by two CRLFs, in
  2275.             which case there are no header fields for the next part (and
  2276.             it is therefore assumed to be of Content-Type text/plain).
  2277.  
  2278.                  NOTE:  The CRLF preceding the  encapsulation  line
  2279.                  is  considered  part of the boundary so that it is
  2280.                  possible to have a part that does not end  with  a
  2281.                  CRLF  (line   break).  Body  parts  that  must  be
  2282.                  considered to end  with  line  breaks,  therefore,
  2283.                  must  have  two  CRLFs preceding the encapsulation
  2284.                  line, the first of which is part of the  preceding
  2285.                  body  part, and the second of which is part of the
  2286.                  encapsulation boundary.
  2287.  
  2288.             Encapsulation  boundaries  must  not   appear   within   the
  2289.             encapsulations,  and  must  be no longer than 70 characters,
  2290.             not counting the two leading hyphens.
  2291.  
  2292.             The encapsulation boundary following the last body part is a
  2293.             distinguished  delimiter that indicates that no further body
  2294.             parts will follow.  Such a delimiter  is  identical  to  the
  2295.             previous  delimiters,  with the addition of two more hyphens
  2296.             at the end of the line:
  2297.  
  2298.                  --gc0p4Jq0M2Yt08jU534c0p--
  2299.  
  2300.             There appears to be room for additional information prior to
  2301.             the  first  encapsulation  boundary  and following the final
  2302.             boundary.  These areas should generally be left  blank,  and
  2303.             implementations
  2304.             must ignore anything that appears before the first  boundary
  2305.             or after the last one.
  2306.  
  2307.                  NOTE:  These "preamble" and "epilogue"  areas  are
  2308.                  generally  not  used because of the lack of proper
  2309.                  typing of  these  parts  and  the  lack  of  clear
  2310.                  semantics  for  handling  these areas at gateways,
  2311.                  particularly X.400 gateways.  However, rather than
  2312.                  leaving   the   preamble  area  blank,  many  MIME
  2313.                  implementations have found this to be a convenient
  2314.                  place to insert an explanatory note for recipients
  2315.  
  2316.  
  2317.  
  2318.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 37]
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2325.  
  2326.  
  2327.                  who read the message with pre-MIME software, since
  2328.                  such  notes  will  be  ignored  by  MIME-compliant
  2329.                  software.
  2330.  
  2331.                  NOTE:  Because encapsulation boundaries  must  not
  2332.                  appear  in  the  body  parts being encapsulated, a
  2333.                  user agent must exercise care to choose  a  unique
  2334.                  boundary.  The boundary in the example above could
  2335.                  have been the result of an algorithm  designed  to
  2336.                  produce  boundaries with a very low probability of
  2337.                  already existing in the data  to  be  encapsulated
  2338.                  without  having  to  prescan  the data.  Alternate
  2339.                  algorithms  might  result   in   more   'readable'
  2340.                  boundaries for a recipient with an old user agent,
  2341.                  but  would   require   more   attention   to   the
  2342.                  possibility  that the boundary might appear in the
  2343.                  encapsulated part.  The simplest boundary possible
  2344.                  is  something  like "---", with a closing boundary
  2345.                  of "-----".
  2346.  
  2347.             As a very simple example, the  following  multipart  message
  2348.             has  two  parts,  both  of  them  plain  text,  one  of them
  2349.             explicitly typed and one of them implicitly typed:
  2350.  
  2351.                  From: Nathaniel Borenstein <nsb@bellcore.com>
  2352.                  To:  Ned Freed <ned@innosoft.com>
  2353.                  Subject: Sample message
  2354.                  MIME-Version: 1.0
  2355.                  Content-type: multipart/mixed; boundary="simple
  2356.                  boundary"
  2357.  
  2358.                  This is the preamble.  It is to be ignored, though it
  2359.                  is a handy place for mail composers to include an
  2360.                  explanatory note to non-MIME conformant readers.
  2361.                  --simple boundary
  2362.  
  2363.                  This is implicitly typed plain ASCII text.
  2364.                  It does NOT end with a linebreak.
  2365.                  --simple boundary
  2366.                  Content-type: text/plain; charset=us-ascii
  2367.  
  2368.                  This is explicitly typed plain ASCII text.
  2369.                  It DOES end with a linebreak.
  2370.  
  2371.                  --simple boundary--
  2372.  
  2373.  
  2374.  
  2375.  
  2376.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 38]
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2383.  
  2384.  
  2385.                  This is the epilogue.  It is also to be ignored.
  2386.  
  2387.             The use of a Content-Type of multipart in a body part within
  2388.             another  multipart  entity  is explicitly allowed.   In such
  2389.             cases, for obvious reasons, care must  be  taken  to  ensure
  2390.             that  each  nested  multipart  entity  must  use a different
  2391.             boundary delimiter. See Appendix C for an example of  nested
  2392.             multipart entities.
  2393.  
  2394.             The use of the multipart Content-Type  with  only  a  single
  2395.             body  part  may  be  useful  in  certain  contexts,  and  is
  2396.             explicitly permitted.
  2397.  
  2398.             The only mandatory parameter for the multipart  Content-Type
  2399.             is  the  boundary  parameter,  which  consists  of  1  to 70
  2400.             characters from a set of characters known to be very  robust
  2401.             through  email  gateways,  and  NOT ending with white space.
  2402.             (If a boundary appears to end with white  space,  the  white
  2403.             space  must be presumed to have been added by a gateway, and
  2404.             must be deleted.)  It is formally specified by the following
  2405.             BNF:
  2406.  
  2407.             boundary := 0*69<bchars> bcharsnospace
  2408.  
  2409.             bchars := bcharsnospace / " "
  2410.  
  2411.             bcharsnospace :=    DIGIT / ALPHA / "'" / "(" / ")" / "+"  /
  2412.             "_"
  2413.                            / "," / "-" / "." / "/" / ":" / "=" / "?"
  2414.  
  2415.             Overall, the body of a multipart entity may be specified  as
  2416.             follows:
  2417.  
  2418.             multipart-body := preamble 1*encapsulation
  2419.                            close-delimiter epilogue
  2420.  
  2421.             encapsulation := delimiter body-part CRLF
  2422.  
  2423.             delimiter := "--" boundary CRLF   ; taken from  Content-Type
  2424.             field.
  2425.                                          ; There must be no space
  2426.                                          ; between "--" and boundary.
  2427.  
  2428.             close-delimiter := "--" boundary "--" CRLF ; Again, no space
  2429.             by "--",
  2430.  
  2431.  
  2432.  
  2433.  
  2434.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 39]
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2441.  
  2442.  
  2443.             preamble := discard-text                  ;  to  be  ignored
  2444.             upon receipt.
  2445.  
  2446.             epilogue := discard-text                  ;  to  be  ignored
  2447.             upon receipt.
  2448.  
  2449.             discard-text := *[*text CRLF]
  2450.  
  2451.             body-part = <"message" as defined in RFC 822,
  2452.                      with all header fields optional, and with the
  2453.                      specified delimiter not occurring anywhere in
  2454.                      the message body, either on a line by itself
  2455.                      or as a substring anywhere.  Note that the
  2456.                      semantics of a part differ from the semantics
  2457.                      of a message, as described in the text.>
  2458.  
  2459.                  NOTE:  Conspicuously missing  from  the  multipart
  2460.                  type  is  a  notion  of  structured,  related body
  2461.                  parts.  In general, it seems premature to  try  to
  2462.                  standardize   interpart   structure  yet.   It  is
  2463.                  recommended that those wishing to provide  a  more
  2464.                  structured   or   integrated  multipart  messaging
  2465.                  facility should define a subtype of multipart that
  2466.                  is   syntactically   identical,  but  that  always
  2467.                  expects the inclusion of a distinguished part that
  2468.                  can   be   used   to  specify  the  structure  and
  2469.                  integration of the other parts, probably referring
  2470.                  to  them  by  their  Content-ID  field.   If  this
  2471.                  approach is used, other implementations  will  not
  2472.                  recognize  the  new  subtype, but will treat it as
  2473.                  the primary  subtype  (multipart/mixed)  and  will
  2474.                  thus  be  able to show the user the parts that are
  2475.                  recognized.
  2476.  
  2477.             7.2.2     The Multipart/mixed (primary) subtype
  2478.  
  2479.             The primary subtype for multipart, "mixed", is intended  for
  2480.             use  when  the body parts are independent and intended to be
  2481.             displayed  serially.   Any  multipart   subtypes   that   an
  2482.             implementation  does  not recognize must be treated as being
  2483.             of subtype "mixed".
  2484.  
  2485.             7.2.3     The Multipart/alternative subtype
  2486.  
  2487.             The multipart/alternative type is syntactically identical to
  2488.             multipart/mixed,   but  the  semantics  are  different.   In
  2489.  
  2490.  
  2491.  
  2492.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 40]
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2499.  
  2500.  
  2501.             particular, each of the parts is an "alternative" version of
  2502.             the same information.  User agents should recognize that the
  2503.             content of the various parts are interchangeable.  The  user
  2504.             agent  should  either  choose  the  "best" type based on the
  2505.             user's environment and preferences, or offer  the  user  the
  2506.             available  alternatives.  In general, choosing the best type
  2507.             means displaying only the LAST part that can  be  displayed.
  2508.             This  may be used, for example, to send mail in a fancy text
  2509.             format in such  a  way  that  it  can  easily  be  displayed
  2510.             anywhere:
  2511.  
  2512.             From:  Nathaniel Borenstein <nsb@bellcore.com>
  2513.             To: Ned Freed <ned@innosoft.com>
  2514.             Subject: Formatted text mail
  2515.             MIME-Version: 1.0
  2516.             Content-Type: multipart/alternative; boundary=boundary42
  2517.  
  2518.             --boundary42
  2519.             Content-Type: text/plain; charset=us-ascii
  2520.  
  2521.             ...plain text version of message goes here....
  2522.             --boundary42
  2523.             Content-Type: text/richtext
  2524.  
  2525.             .... richtext version of same message goes here ...
  2526.             --boundary42
  2527.             Content-Type: text/x-whatever
  2528.  
  2529.             .... fanciest formatted version of same  message  goes  here
  2530.             ...
  2531.             --boundary42--
  2532.  
  2533.             In this example, users  whose  mail  system  understood  the
  2534.             "text/x-whatever"  format  would see only the fancy version,
  2535.             while other users would see only the richtext or plain  text
  2536.             version, depending on the capabilities of their system.
  2537.  
  2538.             In general, user agents that  compose  multipart/alternative
  2539.             entities  must  place  the body parts in increasing order of
  2540.             preference, that is, with the  preferred  format  last.  For
  2541.             fancy  text,  the sending user agent should put the plainest
  2542.             format first and the richest format  last.   Receiving  user
  2543.             agents  should  pick  and  display  the last format they are
  2544.             capable of  displaying.   In  the  case  where  one  of  the
  2545.             alternatives  is  itself  of  type  "multipart" and contains
  2546.             unrecognized sub-parts, the user agent may choose either  to
  2547.  
  2548.  
  2549.  
  2550.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 41]
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2557.  
  2558.  
  2559.             show that alternative, an earlier alternative, or both.
  2560.  
  2561.                  NOTE:  From an implementor's perspective, it might
  2562.                  seem  more  sensible to reverse this ordering, and
  2563.                  have  the  plainest  alternative  last.   However,
  2564.                  placing  the  plainest  alternative  first  is the
  2565.                  friendliest       possible       option       when
  2566.                  multipart/alternative  entities are viewed using a
  2567.                  non-MIME-conformant  mail  reader.    While   this
  2568.                  approach  does  impose  some  burden on conformant
  2569.                  mail readers,  interoperability  with  older  mail
  2570.                  readers  was  deemed  to be more important in this
  2571.                  case.
  2572.  
  2573.             It may be the case  that  some  user  agents,  if  they  can
  2574.             recognize more than one of the formats, will prefer to offer
  2575.             the user the choice of which format  to  view.   This  makes
  2576.             sense, for example, if mail includes both a nicely-formatted
  2577.             image version and an easily-edited text  version.   What  is
  2578.             most  critical,  however, is that the user not automatically
  2579.             be shown multiple versions of the  same  data.   Either  the
  2580.             user  should  be shown the last recognized version or should
  2581.             explicitly be given the choice.
  2582.  
  2583.             Note    on    the     semantics     of     Content-ID     in
  2584.             multipart/alternative:     Because    each    part    of   a
  2585.             multipart/alternative entity represents the same data, it is
  2586.             recommended  that  each part should have the same Content-ID
  2587.             value, if any.  However, it is recommended that this  should
  2588.             not   be  the  same  Content-ID  value  that  describes  the
  2589.             multipart/alternative as a  whole,  if  there  is  any  such
  2590.             Content-ID  field.  That is, one Content-ID value will refer
  2591.             to the multipart/alternative entity, while another  Content-
  2592.             ID value will refer to any of the parts inside it.
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 42]
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2615.  
  2616.  
  2617.             7.2.4     The Multipart/digest subtype
  2618.  
  2619.             This document defines a "digest" subtype  of  the  multipart
  2620.             Content-Type.   This  type  is  syntactically  identical  to
  2621.             multipart/mixed,  but  the  semantics  are  different.    In
  2622.             particular,  in a digest, the default Content-Type value for
  2623.             a   body   part   is   changed    from    "text/plain"    to
  2624.             "message/rfc822".   This  is  done  to allow a more readable
  2625.             digest format that is largely  compatible  (except  for  the
  2626.             quoting convention) with RFC 934.
  2627.  
  2628.             A digest in this format might,  then,  look  something  like
  2629.             this:
  2630.  
  2631.             From: Moderator-Address
  2632.             To: Recipient-List
  2633.             MIME-Version: 1.0
  2634.             Subject:  Internet Digest, volume 42
  2635.             Content-Type: multipart/digest;
  2636.                  boundary="---- next message ----"
  2637.  
  2638.  
  2639.             ------ next message ----
  2640.  
  2641.             From: someone-else
  2642.             Subject: my opinion
  2643.  
  2644.             ...body goes here ...
  2645.  
  2646.             ------ next message ----
  2647.  
  2648.             From: someone-else-again
  2649.             Subject: my different opinion
  2650.  
  2651.             ... another body goes here...
  2652.  
  2653.             ------ next message ------
  2654.  
  2655.             7.2.5     The Multipart/parallel subtype
  2656.  
  2657.             This document defines a "parallel" subtype of the  multipart
  2658.             Content-Type.   This  type  is  syntactically  identical  to
  2659.             multipart/mixed,  but  the  semantics  are  different.    In
  2660.             particular,  in  a  parallel  entity,  all  of the parts are
  2661.             intended to be presented in parallel, i.e.,  simultaneously,
  2662.             on  hardware  and  software  that  are  capable of doing so.
  2663.  
  2664.  
  2665.  
  2666.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 43]
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2673.  
  2674.  
  2675.             Composing agents should be aware that many mail readers will
  2676.             lack this capability and will show the parts serially in any
  2677.             event.
  2678.  
  2679.             7.2.6     Other Multipart subtypes
  2680.  
  2681.             Other multipart subtypes are expected in the  future.   MIME
  2682.             implementations  must in general treat unrecognized subtypes
  2683.             of multipart as being equivalent to "multipart/mixed".
  2684.  
  2685.             The  formal  grammar  for  content-type  header  fields  for
  2686.             multipart data is given by:
  2687.  
  2688.             multipart-type  :=  "multipart"  "/"  multipart-subtype  ";"
  2689.             "boundary" "=" boundary
  2690.  
  2691.             multipart-subtype := "mixed" / "parallel" / "digest"
  2692.                            / "alternative" / "extension-token"
  2693.  
  2694.             7.3  The Message Content-Type
  2695.  
  2696.             It is frequently desirable, in sending mail, to  encapsulate
  2697.             another  mail  message. For this common operation, a special
  2698.             Content-Type, "message", is defined.  The  primary  subtype,
  2699.             message/rfc822,  has  no required parameters in the Content-
  2700.             Type field.  Additional subtypes, "partial"  and  "External-
  2701.             body",  do  have  required  parameters.   These subtypes are
  2702.             explained below.
  2703.  
  2704.                  NOTE:  It has  been  suggested  that  subtypes  of
  2705.                  message might be defined for forwarded or rejected
  2706.                  messages.    However,   forwarded   and   rejected
  2707.                  messages  can  be handled as multipart messages in
  2708.                  which the  first  part  contains  any  control  or
  2709.                  descriptive  information,  and  a  second part, of
  2710.                  type message/rfc822, is the forwarded or  rejected
  2711.                  message.    Composing   rejection  and  forwarding
  2712.                  messages in this manner  will  preserve  the  type
  2713.                  information  on  the original message and allow it
  2714.                  to be correctly presented to  the  recipient,  and
  2715.                  hence is strongly encouraged.
  2716.  
  2717.             As stated in the definition of the Content-Transfer-Encoding
  2718.             field, no encoding other than "7bit", "8bit", or "binary" is
  2719.             permitted for messages or  parts  of  type  "message".  Even
  2720.             stronger     restrictions     apply     to    the    subtype
  2721.  
  2722.  
  2723.  
  2724.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 44]
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2731.  
  2732.  
  2733.             "message/partial", as specified below.  The  message  header
  2734.             fields  are always US-ASCII in any case, and data within the
  2735.             body can still  be  encoded,  in  which  case  the  Content-
  2736.             Transfer-Encoding  header  field in the encapsulated message
  2737.             will reflect this.  Non-ASCII text  in  the  headers  of  an
  2738.             encapsulated  message  can be specified using the mechanisms
  2739.             described in [RFC-1342].
  2740.  
  2741.             Mail gateways, relays, and other mail  handling  agents  are
  2742.             commonly  known  to alter the top-level header of an RFC 822
  2743.             message.   In particular, they frequently  add,  remove,  or
  2744.             reorder  header  fields.   Such  alterations  are explicitly
  2745.             forbidden for  the  encapsulated  headers  embedded  in  the
  2746.             bodies of messages of type "message."
  2747.  
  2748.             7.3.1     The Message/rfc822 (primary) subtype
  2749.  
  2750.             A Content-Type of "message/rfc822" indicates that  the  body
  2751.             contains  an encapsulated message, with the syntax of an RFC
  2752.             822 message.  However, unlike top-level RFC 822 messages, it
  2753.             is not required that each message/rfc822 body must include a
  2754.             "From", "Subject", and at least one destination header.
  2755.  
  2756.             7.3.2     The Message/Partial subtype
  2757.  
  2758.             A subtype of message, "partial",  is  defined  in  order  to
  2759.             allow  large  objects  to  be  delivered as several separate
  2760.             pieces  of  mail  and  automatically  reassembled   by   the
  2761.             receiving  user  agent.   (The  concept  is  similar  to  IP
  2762.             fragmentation/reassembly in the basic  Internet  Protocols.)
  2763.             This  mechanism  can  be  used  when  intermediate transport
  2764.             agents limit the size of individual  messages  that  can  be
  2765.             sent.   Content-Type  "message/partial"  thus indicates that
  2766.             the body contains a fragment of a larger message.
  2767.  
  2768.             Three parameters must be specified in the Content-Type field
  2769.             of  type  message/partial:  The  first,  "id",  is  a unique
  2770.             identifier,  as  close  to  a  world-unique  identifier   as
  2771.             possible,  to  be  used  to  match  the parts together.  (In
  2772.             general, the identifier  is  essentially  a  message-id;  if
  2773.             placed  in  double  quotes,  it  can  be  any message-id, in
  2774.             accordance with the BNF for  "parameter"  given  earlier  in
  2775.             this  specification.)   The second, "number", an integer, is
  2776.             the part number, which indicates where this part  fits  into
  2777.             the  sequence  of  fragments.   The  third, "total", another
  2778.             integer, is the total number of parts. This  third  subfield
  2779.  
  2780.  
  2781.  
  2782.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 45]
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2789.  
  2790.  
  2791.             is  required  on  the  final  part,  and  is optional on the
  2792.             earlier parts. Note also that these parameters may be  given
  2793.             in any order.
  2794.  
  2795.             Thus, part 2 of a 3-part message  may  have  either  of  the
  2796.             following header fields:
  2797.  
  2798.                  Content-Type: Message/Partial;
  2799.                       number=2; total=3;
  2800.                       id="oc=jpbe0M2Yt4s@thumper.bellcore.com"
  2801.  
  2802.                  Content-Type: Message/Partial;
  2803.                       id="oc=jpbe0M2Yt4s@thumper.bellcore.com";
  2804.                       number=2
  2805.  
  2806.             But part 3 MUST specify the total number of parts:
  2807.  
  2808.                  Content-Type: Message/Partial;
  2809.                       number=3; total=3;
  2810.                       id="oc=jpbe0M2Yt4s@thumper.bellcore.com"
  2811.  
  2812.             Note that part numbering begins with 1, not 0.
  2813.  
  2814.             When the parts of a message broken up in this manner are put
  2815.             together,  the  result is a complete RFC 822 format message,
  2816.             which may have its own Content-Type header field,  and  thus
  2817.             may contain any other data type.
  2818.  
  2819.             Message fragmentation and reassembly:  The  semantics  of  a
  2820.             reassembled  partial  message  must  be those of the "inner"
  2821.             message, rather than  of  a  message  containing  the  inner
  2822.             message.   This  makes  it  possible, for example, to send a
  2823.             large audio message as several partial messages,  and  still
  2824.             have  it  appear  to the recipient as a simple audio message
  2825.             rather than as an encapsulated message containing  an  audio
  2826.             message.   That  is,  the  encapsulation  of  the message is
  2827.             considered to be "transparent".
  2828.  
  2829.             When  generating   and   reassembling   the   parts   of   a
  2830.             message/partial  message,  the  headers  of the encapsulated
  2831.             message must be merged with the  headers  of  the  enclosing
  2832.             entities.  In  this  process  the  following  rules  must be
  2833.             observed:
  2834.  
  2835.                  (1) All of the  header  fields  from  the  initial
  2836.                  enclosing  entity  (part  one),  except those that
  2837.  
  2838.  
  2839.  
  2840.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 46]
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2847.  
  2848.  
  2849.                  start with  "Content-"  and  the  specific  header
  2850.                  fields   "Message-ID",   "Encrypted",  and  "MIME-
  2851.                  Version", must be copied, in  order,  to  the  new
  2852.                  message.
  2853.  
  2854.                  (2) Only  those  header  fields  in  the  enclosed
  2855.                  message  which start with "Content-" and "Message-
  2856.                  ID",  "Encrypted",  and  "MIME-Version"  must   be
  2857.                  appended,  in  order,  to the header fields of the
  2858.                  new message.  Any header fields  in  the  enclosed
  2859.                  message which do not start with "Content-" (except
  2860.                  for "Message-ID", "Encrypted", and "MIME-Version")
  2861.                  will be ignored.
  2862.  
  2863.                  (3) All of the header fields from the  second  and
  2864.                  any subsequent messages will be ignored.
  2865.  
  2866.             For example, if an audio message is broken into  two  parts,
  2867.             the first part might look something like this:
  2868.  
  2869.                  X-Weird-Header-1: Foo
  2870.                  From: Bill@host.com
  2871.                  To: joe@otherhost.com
  2872.                  Subject: Audio mail
  2873.                  Message-ID: <id1@host.com>
  2874.                  MIME-Version: 1.0
  2875.                  Content-type: message/partial;
  2876.                       id="ABC@host.com";
  2877.                       number=1; total=2
  2878.  
  2879.                  X-Weird-Header-1: Bar
  2880.                  X-Weird-Header-2: Hello
  2881.                  Message-ID: <anotherid@foo.com>
  2882.                  MIME-Version: 1.0
  2883.                  Content-type: audio/basic
  2884.                  Content-transfer-encoding: base64
  2885.  
  2886.                  ... first half of encoded audio data goes here...
  2887.  
  2888.             and the second half might look something like this:
  2889.  
  2890.                  From: Bill@host.com
  2891.                  To: joe@otherhost.com
  2892.                  Subject: Audio mail
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 47]
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2905.  
  2906.  
  2907.                  MIME-Version: 1.0
  2908.                  Message-ID: <id2@host.com>
  2909.                  Content-type: message/partial;
  2910.                       id="ABC@host.com"; number=2; total=2
  2911.  
  2912.                  ... second half of encoded audio data goes here...
  2913.  
  2914.             Then,  when  the  fragmented  message  is  reassembled,  the
  2915.             resulting  message  to  be displayed to the user should look
  2916.             something like this:
  2917.  
  2918.                  X-Weird-Header-1: Foo
  2919.                  From: Bill@host.com
  2920.                  To: joe@otherhost.com
  2921.                  Subject: Audio mail
  2922.                  Message-ID: <anotherid@foo.com>
  2923.                  MIME-Version: 1.0
  2924.                  Content-type: audio/basic
  2925.                  Content-transfer-encoding: base64
  2926.  
  2927.                  ... first half of encoded audio data goes here...
  2928.                  ... second half of encoded audio data goes here...
  2929.  
  2930.             Note  on  encoding  of  MIME  entities  encapsulated  inside
  2931.             message/partial  entities:    Because data of type "message"
  2932.             may never  be  encoded  in  base64  or  quoted-printable,  a
  2933.             problem   might   arise   if  message/partial  entities  are
  2934.             constructed in an environment that supports binary or  8-bit
  2935.             transport.    The  problem  is that the binary data would be
  2936.             split into multiple message/partial objects,  each  of  them
  2937.             requiring   binary   transport.    If   such   objects  were
  2938.             encountered at a gateway into a 7-bit transport environment,
  2939.             there  would be no way to properly encode them for the 7-bit
  2940.             world, aside from waiting for all of the parts, reassembling
  2941.             the  message,  and  then  encoding  the  reassembled data in
  2942.             base64 or  quoted-printable.   Since  it  is  possible  that
  2943.             different  parts  might  go through different gateways, even
  2944.             this is not an acceptable solution.  For this reason, it  is
  2945.             specified  that  MIME  entities of type message/partial must
  2946.             always  have  a  content-transfer-encoding  of  7-bit   (the
  2947.             default).   In particular, even in environments that support
  2948.             binary or 8-bit transport, the use  of  a  content-transfer-
  2949.             encoding  of "8bit" or "binary' is explicitly prohibited for
  2950.             entities of type message/partial.
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 48]
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  2963.  
  2964.  
  2965.             It should be  noted  that,  because  some  message  transfer
  2966.             agents  may choose to automatically fragment large messages,
  2967.             and because such  agents  may  use  different  fragmentation
  2968.             thresholds,  it  is  possible  that  the pieces of a partial
  2969.             message, upon reassembly, may prove themselves to comprise a
  2970.             partial message.  This is explicitly permitted.
  2971.  
  2972.             It should also be noted that the inclusion of a "References"
  2973.             field  in the headers of the second and subsequent pieces of
  2974.             a fragmented message that references the Message-Id  on  the
  2975.             previous  piece  may  be  of  benefit  to  mail readers that
  2976.             understand and track references. However, the generation  of
  2977.             such "References" fields is entirely optional.
  2978.  
  2979.             Finally, it should be  noted  that  the  "Encrypted"  header
  2980.             field  has  been made obsolete by Privacy Enhanced Messaging
  2981.             (PEM), but the rules above  are  believed  to  describe  the
  2982.             correct  way to treat it if it is encountered in the context
  2983.             of conversion to and from message/partial fragments.
  2984.  
  2985.             7.3.3     The Message/External-Body subtype
  2986.  
  2987.             The external-body subtype indicates  that  the  actual  body
  2988.             data are not included, but merely referenced.  In this case,
  2989.             the  parameters  describe  a  mechanism  for  accessing  the
  2990.             external data.
  2991.  
  2992.             When a body is of type "message/external-body", it  consists
  2993.             of  a  header, two consecutive CRLFs, and the message header
  2994.             for  the  encapsulated  message.    If   another   pair   of
  2995.             consecutive  CRLFs  appears, this of course ends the message
  2996.             header for the  encapsulated  message.  However,  since  the
  2997.             encapsulated  message's body is itself external, it does NOT
  2998.             appear in the area that follows.  For example, consider  the
  2999.             following message:
  3000.  
  3001.                  Content-type: message/external-body; access-
  3002.                  type=local-file;
  3003.                       name="/u/nsb/Me.gif"
  3004.  
  3005.                  Content-type:  image/gif
  3006.  
  3007.                  THIS IS NOT REALLY THE BODY!
  3008.  
  3009.             The area at the end, which  might  be  called  the  "phantom
  3010.             body", is ignored for most external-body messages.  However,
  3011.  
  3012.  
  3013.  
  3014.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 49]
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3021.  
  3022.  
  3023.             it may be used to contain  auxiliary  information  for  some
  3024.             such  messages,  as  indeed  it  is  when the access-type is
  3025.             "mail-server".   Of  the  access-types   defined   by   this
  3026.             document, the phantom body is used only when the access-type
  3027.             is "mail-server".  In all other cases, the phantom  body  is
  3028.             ignored.
  3029.  
  3030.             The only always-mandatory  parameter  for  message/external-
  3031.             body  is  "access-type";  all of the other parameters may be
  3032.             mandatory or optional depending on the value of access-type.
  3033.  
  3034.                  ACCESS-TYPE -- A case-insensitive word, indicating
  3035.                  the  supported  access mechanism by which the file
  3036.                  or data may be obtained.  Values include, but  are
  3037.                  not  limited to, "FTP", "ANON-FTP", "TFTP", "AFS",
  3038.                  "LOCAL-FILE", and "MAIL-SERVER".   Future  values,
  3039.                  except  for experimental values beginning with "X-
  3040.                  ", must be registered with IANA, as  described  in
  3041.                  Appendix E .
  3042.  
  3043.             In addition, the following three parameters are optional for
  3044.             ALL access-types:
  3045.  
  3046.                  EXPIRATION -- The date (in the RFC 822 "date-time"
  3047.                  syntax, as extended by RFC 1123 to permit 4 digits
  3048.                  in the date field) after which  the  existence  of
  3049.                  the external data is not guaranteed.
  3050.  
  3051.                  SIZE -- The size (in octets)  of  the  data.   The
  3052.                  intent  of this parameter is to help the recipient
  3053.                  decide whether or  not  to  expend  the  necessary
  3054.                  resources to retrieve the external data.
  3055.  
  3056.                  PERMISSION -- A field that  indicates  whether  or
  3057.                  not it is expected that clients might also attempt
  3058.                  to  overwrite  the  data.   By  default,   or   if
  3059.                  permission  is "read", the assumption is that they
  3060.                  are not, and that if the data is  retrieved  once,
  3061.                  it  is never needed again. If PERMISSION is "read-
  3062.                  write", this assumption is invalid, and any  local
  3063.                  copy  must  be  considered  no  more than a cache.
  3064.                  "Read"  and  "Read-write"  are  the  only  defined
  3065.                  values of permission.
  3066.  
  3067.             The precise semantics of the access-types defined  here  are
  3068.             described in the sections that follow.
  3069.  
  3070.  
  3071.  
  3072.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 50]
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3079.  
  3080.  
  3081.             ALL message/external-body entities MUST include a Content-ID
  3082.             header  field  to  give  a  unique  identifier  by  which to
  3083.             reference the data.  This identifier may be used for caching
  3084.             mechanisms, and for recognizing the receipt of the data when
  3085.             the access-type is "mail-server".
  3086.  
  3087.             7.3.3.1  The "ftp" and "tftp" access-types
  3088.  
  3089.             An access-type of FTP or TFTP  indicates  that  the  message
  3090.             body is accessible as a file using the FTP [RFC-959] or TFTP
  3091.             [RFC-783] protocols, respectively.  For these  access-types,
  3092.             the following additional parameters are mandatory:
  3093.  
  3094.                  NAME -- The name of the  file  that  contains  the
  3095.                  actual body data.
  3096.  
  3097.                  SITE -- A machine  from  which  the  file  may  be
  3098.                  obtained, using the given protocol. This must be a
  3099.                  fully qualified domain name, not a nickname.
  3100.  
  3101.             Before any data are retrieved,  using  FTP,  the  user  will
  3102.             generally  need  to  be  asked  to  provide a login id and a
  3103.             password for the machine named by the  site  parameter.  For
  3104.             security  reasons, such an id and password are not specified
  3105.             as content-type parameters, but must be  obtained  from  the
  3106.             user.
  3107.  
  3108.             In addition, the  following  optional  parameters  may  also
  3109.             appear when the access-type is FTP or ANON-FTP:
  3110.  
  3111.                  DIRECTORY -- A directory from which the data named
  3112.                  by NAME should be retrieved.
  3113.                  MODE  --  A  transfer  mode  for  retrieving   the
  3114.                  information,   e.g.   "image",   with   values  as
  3115.                  specified by the FTP and TFTP protocols  [RFC-783]
  3116.                  [RFC-959].   If  MODE  is not specified, a default
  3117.                  mode of "ASCII" is to be assumed.
  3118.  
  3119.             7.3.3.2  The "anon-ftp" access-type
  3120.  
  3121.             The "anon-ftp" access-type is identical to the "ftp"  access
  3122.             type,  except  that  the user need not be asked to provide a
  3123.             name and password for the specified site.  Instead, the  ftp
  3124.             protocol  will be used with login "anonymous" and a password
  3125.             that corresponds to the user's email address.
  3126.  
  3127.  
  3128.  
  3129.  
  3130.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 51]
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3137.  
  3138.  
  3139.             7.3.3.3  The "local-file" and "afs" access-types
  3140.  
  3141.             An access-type of "local-file"  indicates  that  the  actual
  3142.             body  is  accessible  as  a  file  on the local machine.  An
  3143.             access-type of "afs" indicates that the file  is  accessible
  3144.             via  the  global  AFS  file  system.   In both cases, only a
  3145.             single parameter is required:
  3146.  
  3147.                  NAME -- The name of the  file  that  contains  the
  3148.                  actual body data.
  3149.  
  3150.             The following optional parameter may be used to describe the
  3151.             locality  of  reference  for  the data, that is, the site or
  3152.             sites at which the file is expected to be visible:
  3153.  
  3154.                  SITE -- A domain specifier for a machine or set of
  3155.                  machines that are known to have access to the data
  3156.                  file.  Asterisks may be used for wildcard matching
  3157.                  to   a   part   of   a   domain   name,   such  as
  3158.                  "*.bellcore.com", to indicate a set of machines on
  3159.                  which the data should be directly visible, while a
  3160.                  single asterisk may be used  to  indicate  a  file
  3161.                  that  is  expected  to  be  universally available,
  3162.                  e.g., via a global file system.
  3163.  
  3164.             7.3.3.4  The "mail-server" access-type
  3165.  
  3166.             The "mail-server" access-type indicates that the actual body
  3167.             is  available  from  a mail server.  The mandatory parameter
  3168.             for this access-type is:
  3169.  
  3170.                  SERVER -- The email address  of  the  mail  server
  3171.                  from which the actual body data can be obtained.
  3172.  
  3173.             Because mail servers accept a variety of syntaxes,  some  of
  3174.             which  is  multiline,  the full command to be sent to a mail
  3175.             server is not included as a parameter  on  the  content-type
  3176.             line.   Instead,  it  is provided as the "phantom body" when
  3177.             the content-type is message/external-body  and  the  access-
  3178.             type is mail-server.
  3179.  
  3180.             An optional parameter for this access-type is:
  3181.  
  3182.                  SUBJECT -- The subject that is to be used  in  the
  3183.                  mail  that  is  sent to obtain the data. Note that
  3184.                  keying  mail  servers  on  Subject  lines  is  NOT
  3185.  
  3186.  
  3187.  
  3188.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 52]
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3195.  
  3196.  
  3197.                  recommended,  but  such  mail servers are known to
  3198.                  exist.
  3199.  
  3200.             Note that  MIME  does  not  define  a  mail  server  syntax.
  3201.             Rather,  it  allows  the  inclusion of arbitrary mail server
  3202.             commands in the phantom body.  Implementations must  include
  3203.             the  phantom body in the body of the message it sends to the
  3204.             mail server address to retrieve the relevant data.
  3205.  
  3206.             It is worth noting that,  unlike other  access-types,  mail-
  3207.             server   access  is  asynchronous  and  will  happen  at  an
  3208.             unpredictable time in the future.  For this  reason,  it  is
  3209.             important  that  there  be a mechanism by which the returned
  3210.             data can be matched up with the  original  message/external-
  3211.             body  entity.  MIME mailservers must use the same Content-ID
  3212.             field on the returned message that was used in the  original
  3213.             message/external-body entity, to facilitate such matching.
  3214.  
  3215.  
  3216.             7.3.3.5  Examples and Further Explanations
  3217.  
  3218.             With  the  emerging  possibility  of  very  wide-area   file
  3219.             systems,  it becomes very hard to know in advance the set of
  3220.             machines where a  file  will  and  will  not  be  accessible
  3221.             directly  from the file system.  Therefore it may make sense
  3222.             to provide both a file name, to be tried directly,  and  the
  3223.             name of one or more sites from which the file is known to be
  3224.             accessible.  An implementation can try  to  retrieve  remote
  3225.             files  using FTP or any other protocol, using anonymous file
  3226.             retrieval or prompting the user for the necessary  name  and
  3227.             password.   If  an  external body is accessible via multiple
  3228.             mechanisms, the sender may include multiple  parts  of  type
  3229.             message/external-body    within    an    entity    of   type
  3230.             multipart/alternative.
  3231.  
  3232.             However, the external-body mechanism is not intended  to  be
  3233.             limited  to  file  retrieval,  as  shown  by the mail-server
  3234.             access-type.  Beyond this, one  can  imagine,  for  example,
  3235.             using a video server for external references to video clips.
  3236.  
  3237.             If an entity is of type  "message/external-body",  then  the
  3238.             body  of  the  entity  will contain the header fields of the
  3239.             encapsulated message.  The body itself is to be found in the
  3240.             external  location.   This  means  that  if  the body of the
  3241.             "message/external-body"  message  contains  two  consecutive
  3242.             CRLFs,  everything  after  those  pairs  is  NOT part of the
  3243.  
  3244.  
  3245.  
  3246.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 53]
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3253.  
  3254.  
  3255.             message itself.  For  most  message/external-body  messages,
  3256.             this trailing area must simply be ignored.  However, it is a
  3257.             convenient place for additional data that cannot be included
  3258.             in  the  content-type  header field.   In particular, if the
  3259.             "access-type" value is "mail-server", then the trailing area
  3260.             must  contain  commands to be sent to the mail server at the
  3261.             address given by NAME@SERVER, where NAME and SERVER are  the
  3262.             values of the NAME and SERVER parameters, respectively.
  3263.  
  3264.             The embedded message header fields which appear in the  body
  3265.             of the message/external-body data can be used to declare the
  3266.             Content-type  of  the  external  body.   Thus   a   complete
  3267.             message/external-body  message,  referring  to a document in
  3268.             PostScript format, might look like this:
  3269.  
  3270.                  From: Whomever
  3271.                  To: Someone
  3272.                  Subject: whatever
  3273.                  MIME-Version: 1.0
  3274.                  Message-ID: <id1@host.com>
  3275.                  Content-Type: multipart/alternative; boundary=42
  3276.  
  3277.  
  3278.                  --42
  3279.                  Content-Type: message/external-body;
  3280.                       name="BodyFormats.ps";
  3281.                       site="thumper.bellcore.com";
  3282.                       access-type=ANON-FTP;
  3283.                       directory="pub";
  3284.                       mode="image";
  3285.                       expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
  3286.  
  3287.                  Content-type: application/postscript
  3288.  
  3289.                  --42
  3290.                  Content-Type: message/external-body;
  3291.                       name="/u/nsb/writing/rfcs/RFC-MIME.ps";
  3292.                       site="thumper.bellcore.com";
  3293.                       access-type=AFS
  3294.                       expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
  3295.  
  3296.                  Content-type: application/postscript
  3297.  
  3298.                  --42
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 54]
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3311.  
  3312.  
  3313.                  Content-Type: message/external-body;
  3314.                       access-type=mail-server
  3315.                       server="listserv@bogus.bitnet";
  3316.                       expiration="Fri, 14 Jun 1991 19:13:14 -0400 (EDT)"
  3317.  
  3318.                  Content-type: application/postscript
  3319.  
  3320.                  get RFC-MIME.DOC
  3321.  
  3322.                  --42--
  3323.  
  3324.             Like the  message/partial  type,  the  message/external-body
  3325.             type  is  intended to be transparent, that is, to convey the
  3326.             data type in the external  body  rather  than  to  convey  a
  3327.             message  with  a body of that type.  Thus the headers on the
  3328.             outer and inner parts must be merged using the same rules as
  3329.             for  message/partial.   In  particular,  this means that the
  3330.             Content-type header is overridden, but the From and  Subject
  3331.             headers are preserved.
  3332.  
  3333.             Note that since the external bodies are not  transported  as
  3334.             mail,  they  need  not  conform to the 7-bit and line length
  3335.             requirements, but might in fact be  binary  files.   Thus  a
  3336.             Content-Transfer-Encoding is not generally necessary, though
  3337.             it is permitted.
  3338.  
  3339.             Note that the body of a message of  type  "message/external-
  3340.             body"  is  governed  by  the  basic  syntax  for  an RFC 822
  3341.             message.   In  particular,   anything   before   the   first
  3342.             consecutive  pair  of  CRLFs  is  header  information, while
  3343.             anything after it is body information, which is ignored  for
  3344.             most access-types.
  3345.  
  3346.             The formal grammar for content-type header fields  for  data
  3347.             of type message is given by:
  3348.  
  3349.             message-type := "message" "/" message-subtype
  3350.  
  3351.             message-subtype := "rfc822"
  3352.                             / "partial" 2#3partial-param
  3353.                            / "external-body" 1*external-param
  3354.                            / extension-token
  3355.  
  3356.             partial-param :=      (";" "id" "=" value)
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 55]
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3369.  
  3370.  
  3371.                            /  (";" "number" "=" 1*DIGIT)
  3372.                            /  (";" "total" "=" 1*DIGIT)
  3373.                       ; id & number required; total  required  for  last
  3374.             part
  3375.  
  3376.             external-param :=     (";" "access-type" "=" atype)
  3377.                            / (";" "expiration" "=" date-time)
  3378.                            / (";" "size" "=" 1*DIGIT)
  3379.                            / (";"  "permission"  "="  ("read"  /  "read-
  3380.             write"))
  3381.                            / (";" "name" "="  value)
  3382.                            / (";" "site" "=" value)
  3383.                            / (";" "dir" "=" value)
  3384.                            / (";" "mode" "=" value)
  3385.                            / (";" "server" "=" value)
  3386.                       ; access-type required; others required  based  on
  3387.             access-type
  3388.  
  3389.             atype := "ftp" / "anon-ftp" / "tftp" / "local-file"
  3390.                            / "afs" / "mail-server" / extension-token
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418.  
  3419.  
  3420.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 56]
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3427.  
  3428.  
  3429.             7.4  The Application Content-Type
  3430.  
  3431.             The "application" Content-Type is to be used for data  which
  3432.             do  not fit in any of the other categories, and particularly
  3433.             for data to be processed by mail-based uses  of  application
  3434.             programs.  This is information which must be processed by an
  3435.             application before it is  viewable  or  usable  to  a  user.
  3436.             Expected  uses  for  Content-Type  application include mail-
  3437.             based  file  transfer,  spreadsheets,  data  for  mail-based
  3438.             scheduling    systems,    and    languages    for   "active"
  3439.             (computational) email.  (The latter, in particular, can pose
  3440.             security  problems which must be understood by implementors,
  3441.             and are considered  in  detail  in  the  discussion  of  the
  3442.             application/PostScript content-type.)
  3443.  
  3444.             For example, a meeting scheduler  might  define  a  standard
  3445.             representation for information about proposed meeting dates.
  3446.             An intelligent user agent  would  use  this  information  to
  3447.             conduct  a dialog with the user, and might then send further
  3448.             mail based on that dialog. More generally, there  have  been
  3449.             several  "active"  messaging  languages  developed  in which
  3450.             programs in a suitably specialized language are sent through
  3451.             the   mail   and   automatically   run  in  the  recipient's
  3452.             environment.
  3453.  
  3454.             Such  applications  may  be  defined  as  subtypes  of   the
  3455.             "application"   Content-Type.   This  document  defines  two
  3456.             subtypes: octet-stream, and PostScript.
  3457.  
  3458.             In general, the subtype of application  will  often  be  the
  3459.             name  of  the  application  for which the data are intended.
  3460.             This does not mean, however, that  any  application  program
  3461.             name  may  be used freely as a subtype of application.  Such
  3462.             usages (other than subtypes beginning  with  "x-")  must  be
  3463.             registered with IANA, as described in Appendix E.
  3464.  
  3465.             7.4.1     The Application/Octet-Stream (primary) subtype
  3466.  
  3467.             The primary subtype of application, "octet-stream",  may  be
  3468.             used  to indicate that a body contains binary data.  The set
  3469.             of possible parameters includes, but is not limited to:
  3470.  
  3471.                  TYPE -- the general type  or  category  of  binary
  3472.                  data.   This  is  intended  as information for the
  3473.                  human recipient  rather  than  for  any  automatic
  3474.                  processing.
  3475.  
  3476.  
  3477.  
  3478.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 57]
  3479.  
  3480.  
  3481.  
  3482.  
  3483.  
  3484.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3485.  
  3486.  
  3487.                  PADDING -- the number of bits of padding that were
  3488.                  appended  to  the  bitstream comprising the actual
  3489.                  contents to  produce  the  enclosed  byte-oriented
  3490.                  data.  This is useful for enclosing a bitstream in
  3491.                  a body when the total number  of  bits  is  not  a
  3492.                  multiple of the byte size.
  3493.  
  3494.             An  additional  parameter,  "conversions",  was  defined  in
  3495.             [RFC-1341] but has been removed.
  3496.  
  3497.                  NOTE:  RFC 1341 also defined the use of  a  "NAME"
  3498.                  parameter  which  was  identical  with  the global
  3499.                  "FILENAME" parameter defined in this document.  It
  3500.                  is  recommended  that implementations treat "NAME"
  3501.                  as a synonym for "FILENAME" if it is  encountered.
  3502.                  However,  implementations must generate "FILENAME"
  3503.                  rather than "NAME", and preference must  be  given
  3504.                  to  "FILENAME"  if  both  parameters  appear  on a
  3505.                  received message.
  3506.  
  3507.             The recommended action for an implementation  that  receives
  3508.             application/octet-stream  mail is to simply offer to put the
  3509.             data in a file, with any  Content-Transfer-Encoding  undone,
  3510.             or perhaps to use it as input to a user-specified process.
  3511.  
  3512.             To reduce the danger of transmitting rogue programs  through
  3513.             the  mail,  it  is strongly recommended that implementations
  3514.             NOT implement a path-search mechanism whereby  an  arbitrary
  3515.             program  named  in  the  Content-Type  parameter  (e.g.,  an
  3516.             "interpreter=" parameter) is found and  executed  using  the
  3517.             mail body as input.
  3518.  
  3519.             7.4.2     The Application/PostScript subtype
  3520.  
  3521.             A  Content-Type  of  "application/postscript"  indicates   a
  3522.             PostScript    program.   Currently   two   variants  of  the
  3523.             PostScript  language  are  allowed;  the  original  level  1
  3524.             variant  is  described  in  [POSTSCRIPT] and the more recent
  3525.             level 2 variant is described in [POSTSCRIPT2].
  3526.  
  3527.             The PostScript language definition provides  facilities  for
  3528.             internal labelling of the specific language features a given
  3529.             program uses. This labelling, called the PostScript document
  3530.             structuring   conventions,  is  very  general  and  provides
  3531.             substantially more information than just the language level.
  3532.             The  use  of  document  structuring  conventions,  while not
  3533.  
  3534.  
  3535.  
  3536.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 58]
  3537.  
  3538.  
  3539.  
  3540.  
  3541.  
  3542.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3543.  
  3544.  
  3545.             required,   is   strongly   recommended   as   an   aid   to
  3546.             interoperability.  Documents  which  lack proper structuring
  3547.             conventions cannot be tested to see whether or not they will
  3548.             work  in  a  given  environment.  As  such, some systems may
  3549.             assume  the  worst  and  refuse  to   process   unstructured
  3550.             documents.
  3551.  
  3552.             The execution  of  general-purpose  PostScript  interpreters
  3553.             entails   serious   security  risks,  and  implementors  are
  3554.             discouraged from simply sending PostScript email  bodies  to
  3555.             "off-the-shelf"  interpreters.   While it is usually safe to
  3556.             send PostScript to a printer, where the potential  for  harm
  3557.             is  greatly constrained, implementors should consider all of
  3558.             the  following  before  they  add  interactive  display   of
  3559.             PostScript bodies to their mail readers.
  3560.  
  3561.             The remainder of this section outlines some, though probably
  3562.             not  all,  of  the possible problems with sending PostScript
  3563.             through the mail.
  3564.  
  3565.             Dangerous operations in the PostScript language include, but
  3566.             may  not be limited to, the PostScript operators deletefile,
  3567.             renamefile,  filenameforall,  and  file.    File   is   only
  3568.             dangerous  when  applied  to  something  other than standard
  3569.             input or output. Implementations may also define  additional
  3570.             nonstandard  file operators; these may also pose a threat to
  3571.             security.     Filenameforall,  the  wildcard   file   search
  3572.             operator,  may  appear at first glance to be harmless. Note,
  3573.             however, that this operator  has  the  potential  to  reveal
  3574.             information  about  what  files the recipient has access to,
  3575.             and this  information  may  itself  be  sensitive.   Message
  3576.             senders  should  avoid the use of potentially dangerous file
  3577.             operators, since these operators  are  quite  likely  to  be
  3578.             unavailable  in secure PostScript implementations.  Message-
  3579.             receiving and -displaying software should either  completely
  3580.             disable  all  potentially  dangerous  file operators or take
  3581.             special care not to delegate any special authority to  their
  3582.             operation. These operators should be viewed as being done by
  3583.             an outside agency when  interpreting  PostScript  documents.
  3584.             Such  disabling  and/or  checking  should be done completely
  3585.             outside of the reach of the PostScript language itself; care
  3586.             should  be  taken  to  insure  that  no  method  exists  for
  3587.             reenabling full-function versions of these operators.
  3588.  
  3589.             The PostScript language provides facilities for exiting  the
  3590.             normal  interpreter,  or  server, loop. Changes made in this
  3591.  
  3592.  
  3593.  
  3594.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 59]
  3595.  
  3596.  
  3597.  
  3598.  
  3599.  
  3600.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3601.  
  3602.  
  3603.             "outer"  environment   are   customarily   retained   across
  3604.             documents, and may in some cases be retained semipermanently
  3605.             in nonvolatile memory. The operators associated with exiting
  3606.             the  interpreter  loop  have the potential to interfere with
  3607.             subsequent document processing. As such, their  unrestrained
  3608.             use  constitutes  a  threat  of  service denial.  PostScript
  3609.             operators that exit the interpreter loop  include,  but  may
  3610.             not  be  limited  to, the exitserver and startjob operators.
  3611.             Message-sending software should not generate PostScript that
  3612.             depends  on  exiting  the  interpreter  loop to operate. The
  3613.             ability to exit  will  probably  be  unavailable  in  secure
  3614.             PostScript     implementations.     Message-receiving    and
  3615.             -displaying  software  should,  if  possible,  disable   the
  3616.             ability   to   make   retained  changes  to  the  PostScript
  3617.             environment. Eliminate the startjob and exitserver commands.
  3618.             If  these  commands  cannot  be eliminated, at least set the
  3619.             password associated with them to a hard-to-guess value.
  3620.  
  3621.             PostScript provides operators for  setting  system-wide  and
  3622.             device-specific  parameters. These parameter settings may be
  3623.             retained across jobs and may potentially pose  a  threat  to
  3624.             the  correct  operation  of the interpreter.  The PostScript
  3625.             operators that set system and device parameters include, but
  3626.             may  not be limited to, the setsystemparams and setdevparams
  3627.             operators.  Message-sending  software  should  not  generate
  3628.             PostScript  that  depends on the setting of system or device
  3629.             parameters to operate correctly. The ability  to  set  these
  3630.             parameters will probably be unavailable in secure PostScript
  3631.             implementations. Message-receiving and -displaying  software
  3632.             should,  if  possible,  disable the ability to change system
  3633.             and  device  parameters.  If  these  operators   cannot   be
  3634.             disabled,  at least set the password associated with them to
  3635.             a hard-to-guess value.
  3636.  
  3637.             Some   PostScript   implementations   provide    nonstandard
  3638.             facilities  for  the direct loading and execution of machine
  3639.             code.  Such  facilities  are  quite    obviously   open   to
  3640.             substantial  abuse.    Message-sending  software  should not
  3641.             make use of such features. Besides being  totally  hardware-
  3642.             specific,  they  are also likely to be unavailable in secure
  3643.             implementations  of  PostScript.     Message-receiving   and
  3644.             -displaying  software  should not allow such operators to be
  3645.             used if they exist.
  3646.  
  3647.             PostScript is an extensible language, and many, if not most,
  3648.             implementations   of  it  provide  a  number  of  their  own
  3649.  
  3650.  
  3651.  
  3652.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 60]
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3659.  
  3660.  
  3661.             extensions. This document does not deal with such extensions
  3662.             explicitly   since   they   constitute  an  unknown  factor.
  3663.             Message-sending software should not make use of  nonstandard
  3664.             extensions;   they  are  likely  to  be  missing  from  some
  3665.             implementations. Message-receiving and -displaying  software
  3666.             should  make  sure that any nonstandard PostScript operators
  3667.             are secure and don't present any kind of threat.
  3668.  
  3669.             It is  possible  to  write  PostScript  that  consumes  huge
  3670.             amounts  of various system resources. It is also possible to
  3671.             write PostScript programs that loop infinitely.  Both  types
  3672.             of  programs  have  the potential to cause damage if sent to
  3673.             unsuspecting recipients.   Message-sending  software  should
  3674.             avoid  the  construction and dissemination of such programs,
  3675.             which  is  antisocial.   Message-receiving  and  -displaying
  3676.             software  should  provide  appropriate  mechanisms  to abort
  3677.             processing of a document after a reasonable amount  of  time
  3678.             has  elapsed. In addition, PostScript interpreters should be
  3679.             limited to the consumption of only a  reasonable  amount  of
  3680.             any given system resource.
  3681.  
  3682.             Finally, bugs may  exist  in  some  PostScript  interpreters
  3683.             which  could  possibly  be  exploited  to  gain unauthorized
  3684.             access to a  recipient's  system.  Apart  from  noting  this
  3685.             possibility,  there is no specific action to take to prevent
  3686.             this, apart from the timely correction of such bugs  if  any
  3687.             are found.
  3688.  
  3689.             7.4.3     Other Application subtypes
  3690.  
  3691.             It is expected that many other subtypes of application  will
  3692.             be   defined   in  the  future.  MIME  implementations  must
  3693.             generally  treat  any   unrecognized   subtypes   as   being
  3694.             equivalent to application/octet-stream.
  3695.  
  3696.             The  formal  grammar  for  content-type  header  fields  for
  3697.             application data is given by:
  3698.  
  3699.             application-type :=  "application" "/" application-subtype
  3700.  
  3701.             application-subtype := ("octet-stream" *stream)
  3702.                                 / "postscript" / extension-token
  3703.  
  3704.             stream :=      [";" "name" "=" value]
  3705.  
  3706.  
  3707.  
  3708.  
  3709.  
  3710.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 61]
  3711.  
  3712.  
  3713.  
  3714.  
  3715.  
  3716.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3717.  
  3718.  
  3719.                       [";" type "=" value]
  3720.                       [";" padding "=" padding]
  3721.  
  3722.             padding := "0" / "1" /  "2" /  "3" / "4" / "5" / "6" / "7"
  3723.  
  3724.  
  3725.             7.5  The Image Content-Type
  3726.  
  3727.             A Content-Type of "image" indicates that the  body  contains
  3728.             an  image.   The  subtype  names  the specific image format.
  3729.             These names are case insensitive.  Two initial subtypes  are
  3730.             "jpeg" for the JPEG format, JFIF encoding, and "gif" for GIF
  3731.             format [GIF].
  3732.  
  3733.             The list of image subtypes given here is  neither  exclusive
  3734.             nor  exhaustive,  and  is expected to grow as more types are
  3735.             registered with IANA, as described in Appendix E.
  3736.  
  3737.             The formal grammar for the  content-type  header  field  for
  3738.             data of type image is given by:
  3739.  
  3740.             image-type := "image" "/" ("gif" / "jpeg" / extension-token)
  3741.  
  3742.             7.6  The Audio Content-Type
  3743.  
  3744.             A Content-Type of "audio" indicates that the  body  contains
  3745.             audio  data.   Although  there  is not yet a consensus on an
  3746.             "ideal" audio format for use  with  computers,  there  is  a
  3747.             pressing   need   for   a   format   capable   of  providing
  3748.             interoperable behavior.
  3749.  
  3750.             The initial subtype of "basic" is  specified  to  meet  this
  3751.             requirement by providing an absolutely minimal lowest common
  3752.             denominator  audio  format.   It  is  expected  that  richer
  3753.             formats for higher quality and/or lower bandwidth audio will
  3754.             be defined by a later document.
  3755.  
  3756.             The content of the "audio/basic" subtype  is  audio  encoded
  3757.             using  8-bit  ISDN  mu-law  [PCM].   When  this  subtype  is
  3758.             present, a sample rate of 8000 Hz and a  single  channel  is
  3759.             assumed.
  3760.  
  3761.             The formal grammar for the  content-type  header  field  for
  3762.             data of type audio is given by:
  3763.  
  3764.  
  3765.  
  3766.  
  3767.  
  3768.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 62]
  3769.  
  3770.  
  3771.  
  3772.  
  3773.  
  3774.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3775.  
  3776.  
  3777.             audio-type := "audio" "/" ("basic" / extension-token)
  3778.  
  3779.             7.7  The Video Content-Type
  3780.  
  3781.             A Content-Type of "video" indicates that the body contains a
  3782.             time-varying-picture   image,   possibly   with   color  and
  3783.             coordinated sound.   The  term  "video"  is  used  extremely
  3784.             generically,  rather  than  with reference to any particular
  3785.             technology or format, and is not meant to preclude  subtypes
  3786.             such  as animated drawings encoded compactly.    The subtype
  3787.             "mpeg" refers to video coded according to the MPEG  standard
  3788.             [MPEG].
  3789.  
  3790.             Note  that  although  in  general  this  document   strongly
  3791.             discourages  the  mixing of multiple media in a single body,
  3792.             it is recognized that many so-called "video" formats include
  3793.             a   representation  for  synchronized  audio,  and  this  is
  3794.             explicitly permitted for subtypes of "video".
  3795.  
  3796.             The formal grammar for the  content-type  header  field  for
  3797.             data of type video is given by:
  3798.  
  3799.             video-type := "video" "/" ("mpeg" / extension-token)
  3800.  
  3801.             7.8  Experimental Content-Type Values
  3802.  
  3803.             A Content-Type value beginning with the characters "X-" is a
  3804.             private  value,  to  be  used  by consenting mail systems by
  3805.             mutual agreement.  Any format without a rigorous and  public
  3806.             definition  must  be named with an "X-" prefix, and publicly
  3807.             specified  values  shall  never  begin  with  "X-".   (Older
  3808.             versions  of  the  widely-used Andrew system use the "X-BE2"
  3809.             name, so new systems  should  probably  choose  a  different
  3810.             name.)
  3811.  
  3812.             In general, the use of  "X-"  top-level  types  is  strongly
  3813.             discouraged.   Implementors  should  invent  subtypes of the
  3814.             existing types whenever  possible.   The  invention  of  new
  3815.             types   is  intended  to  be  restricted  primarily  to  the
  3816.             development of new media types for email,  such  as  digital
  3817.             odors  or  holography,  and  not  for  new  data  formats in
  3818.             general. In many cases, a subtype  of  application  will  be
  3819.             more appropriate than a new top-level type.
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.  
  3826.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 63]
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3833.  
  3834.  
  3835.             Summary
  3836.  
  3837.             Using the MIME-Version, Content-Type, and  Content-Transfer-
  3838.             Encoding  header  fields,  it  is  possible to include, in a
  3839.             standardized way, arbitrary types of data objects  with  RFC
  3840.             822  conformant  mail  messages.  No restrictions imposed by
  3841.             either RFC 821 or RFC 822 are violated, and  care  has  been
  3842.             taken  to  avoid  problems caused by additional restrictions
  3843.             imposed  by  the  characteristics  of  some  Internet   mail
  3844.             transport  mechanisms  (see Appendix B). The "multipart" and
  3845.             "message"  Content-Types  allow  mixing   and   hierarchical
  3846.             structuring  of  objects  of  different  types  in  a single
  3847.             message.  Further  Content-Types  provide   a   standardized
  3848.             mechanism  for  tagging  messages  or  body  parts as audio,
  3849.             image, or several other  kinds  of  data.   A  distinguished
  3850.             parameter syntax allows further specification of data format
  3851.             details,  particularly  the   specification   of   alternate
  3852.             character  sets.  Additional  optional header fields provide
  3853.             mechanisms for certain extensions deemed desirable  by  many
  3854.             implementors.  Finally, a number of useful Content-Types are
  3855.             defined for general use by consenting user  agents,  notably
  3856.             text/richtext, message/partial, and message/external-body.
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 64]
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3891.  
  3892.  
  3893.             Acknowledgements
  3894.  
  3895.             This document is the result of the collective  effort  of  a
  3896.             large  number  of  people,  at several IETF meetings, on the
  3897.             IETF-SMTP  and  IETF-822  mailing  lists,   and   elsewhere.
  3898.             Although   any  enumeration  seems  doomed  to  suffer  from
  3899.             egregious  omissions,  the  following  are  among  the  many
  3900.             contributors to this effort:
  3901.  
  3902.             Harald Tveit Alvestrand       Timo Lehtinen
  3903.             Randall Atkinson              John R. MacMillan
  3904.             Philippe Brandon              Rick McGowan
  3905.             Kevin Carosso                 Leo Mclaughlin
  3906.             Uhhyung Choi                  Goli Montaser-Kohsari
  3907.             Cristian Constantinof         Keith Moore
  3908.             Mark Crispin                  Tom Moore
  3909.             Dave Crocker                  Erik Naggum
  3910.             Terry Crowley                 Mark Needleman
  3911.             Walt Daniels                  John Noerenberg
  3912.             Frank Dawson                  Mats Ohrman
  3913.             Hitoshi Doi                   Julian Onions
  3914.             Kevin Donnelly                Michael Patton
  3915.             Keith Edwards                 David J. Pepper
  3916.             Chris Eich                    Blake C. Ramsdell
  3917.             Johnny Eriksson               Luc Rooijakkers
  3918.             Craig Everhart                Marshall T. Rose
  3919.             Patrik Faeltstroem              Jonathan Rosenberg
  3920.             Erik E. Fair                  Jan Rynning
  3921.             Roger Fajman                  Harri Salminen
  3922.             Alain Fontaine                Michael Sanderson
  3923.             James M. Galvin               Masahiro Sekiguchi
  3924.             Philip Gladstone              Mark Sherman
  3925.             Thomas Gordon                 Keld Simonsen
  3926.             Phill Gross                   Bob Smart
  3927.             James Hamilton                Peter Speck
  3928.             Steve Hardcastle-Kille        Henry Spencer
  3929.             David Herron                  Einar Stefferud
  3930.             Bruce Howard                  Michael Stein
  3931.             Bill Janssen                  Klaus Steinberger
  3932.             Olle Jaernefors                Peter Svanberg
  3933.             Risto Kankkunen               James Thompson
  3934.             Phil Karn                     Steve Uhler
  3935.             Alan Katz                     Stuart Vance
  3936.             Tim Kehres                    Erik van der Poel
  3937.  
  3938.  
  3939.  
  3940.  
  3941.  
  3942.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 65]
  3943.  
  3944.  
  3945.  
  3946.  
  3947.  
  3948.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  3949.  
  3950.  
  3951.             Neil Katin                    Guido van Rossum
  3952.             Kyuho Kim                     Peter Vanderbilt
  3953.             Anders Klemets                Greg Vaudreuil
  3954.             John Klensin                  Ed Vielmetti
  3955.             Valdis Kletniek               Ryan Waldron
  3956.             Jim Knowles                   Wally Wedel
  3957.             Stev Knowles                  Sven-Ove Westberg
  3958.             Bob Kummerfeld                Brian Wideen
  3959.             Pekka Kytolaakso              John Wobus
  3960.             Stellan Lagerstr.m            Glenn Wright
  3961.             Vincent Lau                   Rayan Zachariassen
  3962.             Donald Lindsay                David Zimmerman
  3963.  
  3964.             Bob Braden                    Brian Capouch
  3965.             Peter Clitherow               Dave Collier-Brown
  3966.             John Coonrod                  Jim Davis
  3967.             Axel Deininger                Dana S Emery
  3968.             Martin Forssen                Stephen Gildea
  3969.             Mark Horton                   Warner Losh
  3970.             Laurence Lundblade            Charles Lynn
  3971.             Larry Masinter                Michael J. McInerny
  3972.             Jon Postel                    Christer Romson
  3973.             Yutaka Sato                   Richard Alan Schafer
  3974.             Larry W. Virden               Rhys Weatherly
  3975.             Dave Wecker
  3976.             The authors apologize for  any  omissions  from  this  list,
  3977.             which are certainly unintentional.
  3978.  
  3979.  
  3980.  
  3981.  
  3982.  
  3983.  
  3984.  
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 66]
  4001.  
  4002.  
  4003.  
  4004.  
  4005.  
  4006.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4007.  
  4008.  
  4009.             Appendix A -- Minimal MIME-Conformance
  4010.  
  4011.             The mechanisms described in this  document  are  open-ended.
  4012.             It  is definitely not expected that all implementations will
  4013.             support all of the Content-Types described,  nor  that  they
  4014.             will  all  share  the  same extensions.  In order to promote
  4015.             interoperability,  however,  it  is  useful  to  define  the
  4016.             concept  of  "MIME-conformance" to define a certain level of
  4017.             implementation  that  allows  the  useful  interworking   of
  4018.             messages  with  content that differs from US ASCII text.  In
  4019.             this  section,  we  specify  the   requirements   for   such
  4020.             conformance.
  4021.  
  4022.             A mail user agent that is MIME-conformant MUST:
  4023.  
  4024.                  1.  Always generate a "MIME-Version:  1.0"  header
  4025.                  field.
  4026.  
  4027.                  2.  Recognize the Content-Transfer-Encoding header
  4028.                  field,  and  decode all received data encoded with
  4029.                  either    the    quoted-printable    or     base64
  4030.                  implementations.    Encode  any  data sent that is
  4031.                  not in seven-bit mail-ready  representation  using
  4032.                  one  of  these  transformations  and  include  the
  4033.                  appropriate    Content-Transfer-Encoding    header
  4034.                  field,  unless  the underlying transport mechanism
  4035.                  supports non-seven-bit data, as SMTP does not.
  4036.  
  4037.                  3.   Recognize  and  interpret  the   Content-Type
  4038.                  header  field,  and  avoid  showing users raw data
  4039.                  with a Content-Type field  other  than  text.   Be
  4040.                  able  to  send  at least text/plain messages, with
  4041.                  the character set specified as a parameter  if  it
  4042.                  is not US-ASCII.
  4043.  
  4044.                  4.  Explicitly handle the  following  Content-Type
  4045.                  values, to at least the following extents:
  4046.  
  4047.                  Text:
  4048.                       -- Recognize  and  display  "text"  mail
  4049.                            with the character set "US-ASCII."
  4050.                       -- Recognize  other  character  sets  at
  4051.                            least  to  the extent of being able
  4052.                            to  inform  the  user  about   what
  4053.                            character set the message uses.
  4054.  
  4055.  
  4056.  
  4057.  
  4058.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 67]
  4059.  
  4060.  
  4061.  
  4062.  
  4063.  
  4064.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4065.  
  4066.  
  4067.                       -- Recognize the "ISO-8859-*"  character
  4068.                            sets to the extent of being able to
  4069.                            display those characters  that  are
  4070.                            common  to ISO-8859-* and US-ASCII,
  4071.                            namely all  characters  represented
  4072.                            by octet values 0-127.
  4073.                       -- For unrecognized  subtypes,  show  or
  4074.                            offer  to  show  the user the "raw"
  4075.                            version of the data.
  4076.                  Message:
  4077.                       --Recognize and  display  at  least  the
  4078.                            primary (822) encapsulation.
  4079.                  Multipart:
  4080.                       --   Recognize   the   primary   (mixed)
  4081.                            subtype.    Display   all  relevant
  4082.                            information on  the  message  level
  4083.                            and  the body part header level and
  4084.                            then display or  offer  to  display
  4085.                            each     of    the    body    parts
  4086.                            individually.
  4087.                       -- Recognize the "alternative"  subtype,
  4088.                            and    avoid   showing   the   user
  4089.                            redundant         parts          of
  4090.                            multipart/alternative mail.
  4091.                       -- Treat any unrecognized subtypes as if
  4092.                            they were "mixed".
  4093.                  Application:
  4094.                       -- Offer the ability to remove either of
  4095.                            the  two types of Content-Transfer-
  4096.                            Encoding defined in  this  document
  4097.                            and  put  the resulting information
  4098.                            in a user file.
  4099.  
  4100.                  5.  Upon encountering  any  unrecognized  Content-
  4101.                  Type, an implementation must treat it as if it had
  4102.                  a Content-Type of "application/octet-stream"  with
  4103.                  no  parameter  sub-arguments.  How  such  data are
  4104.                  handled is up to  an  implementation,  but  likely
  4105.                  options   for   handling  such  unrecognized  data
  4106.                  include offering the user to write it into a  file
  4107.                  (decoded   from  its  mail  transport  format)  or
  4108.                  offering the user to name a program to  which  the
  4109.                  decoded   data   should   be   passed   as  input.
  4110.                  Unrecognized predefined types, which  in  a  MIME-
  4111.                  conformant   mailer  might  still  include  audio,
  4112.                  image, or video, should also be  treated  in  this
  4113.  
  4114.  
  4115.  
  4116.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 68]
  4117.  
  4118.  
  4119.  
  4120.  
  4121.  
  4122.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4123.  
  4124.  
  4125.             way.
  4126.  
  4127.             A user agent that meets the above conditions is said  to  be
  4128.             MIME-conformant.   The  meaning of this phrase is that it is
  4129.             assumed  to  be  "safe"  to  send  virtually  any  kind   of
  4130.             properly-marked  data to users of such mail systems, because
  4131.             such systems will at least be able  to  treat  the  data  as
  4132.             undifferentiated  binary, and will not simply splash it onto
  4133.             the screen of unsuspecting users.   There is  another  sense
  4134.             in  which  it is always "safe" to send data in a format that
  4135.             is MIME-conformant, which is that such data will  not  break
  4136.             or  be  broken by any known systems that are conformant with
  4137.             RFC 821 and RFC 822.  User agents that  are  MIME-conformant
  4138.             have  the  additional  guarantee  that  the user will not be
  4139.             shown data that were never intended to be viewed as text.
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146.  
  4147.  
  4148.  
  4149.  
  4150.  
  4151.  
  4152.  
  4153.  
  4154.  
  4155.  
  4156.  
  4157.  
  4158.  
  4159.  
  4160.  
  4161.  
  4162.  
  4163.  
  4164.  
  4165.  
  4166.  
  4167.  
  4168.  
  4169.  
  4170.  
  4171.  
  4172.  
  4173.  
  4174.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 69]
  4175.  
  4176.  
  4177.  
  4178.  
  4179.  
  4180.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4181.  
  4182.  
  4183.             Appendix B -- General Guidelines For Sending Email Data
  4184.  
  4185.             Internet email is not a perfect, homogeneous  system.   Mail
  4186.             may  become  corrupted  at several stages in its travel to a
  4187.             final destination. Specifically, email sent  throughout  the
  4188.             Internet  may  travel  across  many networking technologies.
  4189.             Many networking and mail technologies  do  not  support  the
  4190.             full   functionality   possible   in   the   SMTP  transport
  4191.             environment. Mail traversing these systems is likely  to  be
  4192.             modified in such a way that it can be transported.
  4193.  
  4194.             There exist many widely-deployed non-conformant MTAs in  the
  4195.             Internet.  These  MTAs,  speaking  the  SMTP protocol, alter
  4196.             messages on the fly to take advantage of the  internal  data
  4197.             structure  of the hosts they are implemented on, or are just
  4198.             plain broken.
  4199.  
  4200.             The following guidelines may be useful to anyone devising  a
  4201.             data  format  (Content-Type)  that  will  survive the widest
  4202.             range of  networking  technologies  and  known  broken  MTAs
  4203.             unscathed.    Note  that  anything  encoded  in  the  base64
  4204.             encoding will satisfy these rules, but that some  well-known
  4205.             mechanisms,  notably  the  UNIX uuencode facility, will not.
  4206.             Note also that  anything  encoded  in  the  Quoted-Printable
  4207.             encoding will survive most gateways intact, but possibly not
  4208.             some gateways to systems that use the EBCDIC character set.
  4209.  
  4210.                  (1) Under some circumstances the encoding used for
  4211.                  data  may change as part of normal gateway or user
  4212.                  agent operation. In  particular,  conversion  from
  4213.                  base64  to  quoted-printable and vice versa may be
  4214.                  necessary. This may result  in  the  confusion  of
  4215.                  CRLF sequences with line breaks in text bodies. As
  4216.                  such, the persistence of CRLF as  something  other
  4217.                  than a line break must not be relied on.
  4218.  
  4219.                  (2) Many systems may elect to represent and  store
  4220.                  text  data  using local newline conventions. Local
  4221.                  newline conventions may not match the RFC822  CRLF
  4222.                  convention -- systems are known that use plain CR,
  4223.                  plain LF, CRLF, or counted records.  The result is
  4224.                  that isolated CR and LF characters  are  not  well
  4225.                  tolerated  in    general;  they  may  be  lost  or
  4226.                  converted to delimiters on some systems, and hence
  4227.                  must not be relied on.
  4228.  
  4229.  
  4230.  
  4231.  
  4232.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 70]
  4233.  
  4234.  
  4235.  
  4236.  
  4237.  
  4238.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4239.  
  4240.  
  4241.                  (3) TAB (HT) characters may be  misinterpreted  or
  4242.                  may be automatically converted to variable numbers
  4243.                  of  spaces.    This   is   unavoidable   in   some
  4244.                  environments, notably those not based on the ASCII
  4245.                  character  set.  Such   conversion   is   STRONGLY
  4246.                  DISCOURAGED,  but  it  may occur, and mail formats
  4247.                  must not rely  on  the  persistence  of  TAB  (HT)
  4248.                  characters.
  4249.  
  4250.                  (4) Lines longer than 76 characters may be wrapped
  4251.                  or  truncated  in some environments. Line wrapping
  4252.                  and line truncation are STRONGLY DISCOURAGED,  but
  4253.                  unavoidable  in  some  cases.  Applications  which
  4254.                  require  long  lines  must  somehow  differentiate
  4255.                  between  soft and hard line breaks.  (A simple way
  4256.                  to  do  this  is  to  use   the   quoted-printable
  4257.                  encoding.)
  4258.  
  4259.                  (5)  Trailing "white space" characters (SPACE, TAB
  4260.                  (HT)) on a line may be discarded by some transport
  4261.                  agents, while other transport agents may pad lines
  4262.                  with  these characters so that all lines in a mail
  4263.                  file are of equal  length.    The  persistence  of
  4264.                  trailing  white  space,  therefore,  must  not  be
  4265.                  relied on.
  4266.  
  4267.                  (6)  Many mail domains use variations on the ASCII
  4268.                  character  set,  or  use  character  sets  such as
  4269.                  EBCDIC which contain most but not all of  the  US-
  4270.                  ASCII  characters.   The  correct  translation  of
  4271.                  characters not in the "invariant"  set  cannot  be
  4272.                  depended  on across character converting gateways.
  4273.                  For example, this  situation  is  a  problem  when
  4274.                  sending  uuencoded  information  across BITNET, an
  4275.                  EBCDIC system.  Similar problems can occur without
  4276.                  crossing  a gateway, since many Internet hosts use
  4277.                  character sets other than ASCII  internally.   The
  4278.                  definition  of  Printable  Strings  in  X.400 adds
  4279.                  further restrictions in certain special cases.  In
  4280.                  particular,  the only characters that are known to
  4281.                  be consistent  across  all  gateways  are  the  73
  4282.                  characters  that correspond to the upper and lower
  4283.                  case letters A-Z and a-z, the 10 digits  0-9,  and
  4284.                  the following eleven special characters:
  4285.  
  4286.  
  4287.  
  4288.  
  4289.  
  4290.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 71]
  4291.  
  4292.  
  4293.  
  4294.  
  4295.  
  4296.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4297.  
  4298.  
  4299.                                 "'"  (ASCII code 39)
  4300.                                 "("  (ASCII code 40)
  4301.                                 ")"  (ASCII code 41)
  4302.                                 "+"  (ASCII code 43)
  4303.                                 ","  (ASCII code 44)
  4304.                                 "-"  (ASCII code 45)
  4305.                                 "."  (ASCII code 46)
  4306.                                 "/"  (ASCII code 47)
  4307.                                 ":"  (ASCII code 58)
  4308.                                 "="  (ASCII code 61)
  4309.                                 "?"  (ASCII code 63)
  4310.  
  4311.                  A maximally portable mail representation, such  as
  4312.                  the   base64  encoding,  will  confine  itself  to
  4313.                  relatively short lines of text in which  the  only
  4314.                  meaningful  characters  are taken from this set of
  4315.                  73 characters.
  4316.  
  4317.             Please note that the above list is NOT a list of recommended
  4318.             practices  for  MTAs.  RFC  821  MTAs  are  prohibited  from
  4319.             altering the character  of  white  space  or  wrapping  long
  4320.             lines.   These  BAD and illegal practices are known to occur
  4321.             on  established  networks,  and  implementations  should  be
  4322.             robust in dealing with the bad effects they can cause.
  4323.  
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.  
  4347.  
  4348.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 72]
  4349.  
  4350.  
  4351.  
  4352.  
  4353.  
  4354.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4355.  
  4356.  
  4357.             Appendix C -- A Complex Multipart Example
  4358.  
  4359.             What follows is the outline of a complex multipart  message.
  4360.             This  message  has five parts to be displayed serially:  two
  4361.             introductory  plain  text  parts,  an   embedded   multipart
  4362.             message,  a  richtext  part, and a closing encapsulated text
  4363.             message  in  a  non-ASCII  character  set.    The   embedded
  4364.             multipart message has two parts to be displayed in parallel,
  4365.             a picture and an audio fragment.
  4366.  
  4367.                  MIME-Version: 1.0
  4368.                  From: Nathaniel Borenstein <nsb@bellcore.com>
  4369.                  To: Ned Freed <ned@innosoft.com>
  4370.                  Subject: A multipart example
  4371.                  Content-Type: multipart/mixed;
  4372.                       boundary=unique-boundary-1
  4373.  
  4374.                  This is the preamble area of a multipart message.
  4375.                  Mail readers that understand multipart format
  4376.                  should ignore this preamble.
  4377.                  If you are reading this text, you might want to
  4378.                  consider changing to a mail reader that understands
  4379.                  how to properly display multipart messages.
  4380.                  --unique-boundary-1
  4381.  
  4382.                  ...Some text appears here...
  4383.                  [Note that the preceding blank line means
  4384.                  no header fields were given and this is text,
  4385.                  with charset US ASCII.  It could have been
  4386.                  done with explicit typing as in the next part.]
  4387.  
  4388.                  --unique-boundary-1
  4389.                  Content-type: text/plain; charset=US-ASCII
  4390.  
  4391.                  This could have been part of the previous part,
  4392.                  but illustrates explicit versus implicit
  4393.                  typing of body parts.
  4394.  
  4395.                  --unique-boundary-1
  4396.                  Content-Type: multipart/parallel;
  4397.                       boundary=unique-boundary-2
  4398.  
  4399.  
  4400.                  --unique-boundary-2
  4401.  
  4402.  
  4403.  
  4404.  
  4405.  
  4406.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 73]
  4407.  
  4408.  
  4409.  
  4410.  
  4411.  
  4412.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4413.  
  4414.  
  4415.                  Content-Type: audio/basic
  4416.                  Content-Transfer-Encoding: base64
  4417.  
  4418.                  ... base64-encoded 8000 Hz single-channel
  4419.                      mu-law-format audio data goes here....
  4420.  
  4421.                  --unique-boundary-2
  4422.                  Content-Type: image/gif
  4423.                  Content-Transfer-Encoding: Base64
  4424.  
  4425.                  ... base64-encoded image data goes here....
  4426.  
  4427.                  --unique-boundary-2--
  4428.  
  4429.                  --unique-boundary-1
  4430.                  Content-type: text/richtext
  4431.  
  4432.                  This is <bold><italic>richtext.</italic></bold>
  4433.                  <nl><nl>Isn't it
  4434.                  <bigger><bigger>cool?</bigger></bigger>
  4435.  
  4436.                  --unique-boundary-1
  4437.                  Content-Type: message/rfc822
  4438.  
  4439.                  From: (mailbox in US-ASCII)
  4440.                  To: (address in US-ASCII)
  4441.                  Subject: (subject in US-ASCII)
  4442.                  Content-Type: Text/plain; charset=ISO-8859-1
  4443.                  Content-Transfer-Encoding: Quoted-printable
  4444.  
  4445.                  ... Additional text in ISO-8859-1 goes here ...
  4446.  
  4447.                  --unique-boundary-1--
  4448.  
  4449.  
  4450.  
  4451.  
  4452.  
  4453.  
  4454.  
  4455.  
  4456.  
  4457.  
  4458.  
  4459.  
  4460.  
  4461.  
  4462.  
  4463.  
  4464.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 74]
  4465.  
  4466.  
  4467.  
  4468.  
  4469.  
  4470.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4471.  
  4472.  
  4473.             Appendix D -- Collected Grammar
  4474.  
  4475.             This appendix contains the complete BNF grammar for all  the
  4476.             syntax specified by this document.
  4477.  
  4478.             By itself, however, this grammar is incomplete.   It  refers
  4479.             to  several  entities  that  are defined by RFC 822.  Rather
  4480.             than   reproduce   those   definitions   here,   and    risk
  4481.             unintentional  differences  between  the  two, this document
  4482.             simply refers the  reader  to  RFC  822  for  the  remaining
  4483.             definitions.  Wherever a term is undefined, it refers to the
  4484.             RFC 822 definition.
  4485.  
  4486.             application-subtype := ("octet-stream" *stream)
  4487.                                 / "postscript" / extension-token
  4488.  
  4489.             application-type :=  "application" "/" application-subtype
  4490.  
  4491.             attribute := token
  4492.  
  4493.             atype := "ftp" / "anon-ftp" / "tftp" / "local-file"
  4494.                            / "afs" / "mail-server" / extension-token
  4495.  
  4496.             audio-type := "audio" "/" ("basic" / extension-token)
  4497.  
  4498.             body-part = <"message" as defined in RFC 822,
  4499.                      with all header fields optional, and with the
  4500.                      specified delimiter not occurring anywhere in
  4501.                      the message body, either on a line by itself
  4502.                      or as a substring anywhere.>
  4503.  
  4504.             boundary := 0*69<bchars> bcharsnospace
  4505.  
  4506.             bchars := bcharsnospace / " "
  4507.  
  4508.             bcharsnospace :=    DIGIT / ALPHA / "'" / "(" / ")" / "+"  /
  4509.             "_"
  4510.                            / "," / "-" / "." / "/" / ":" / "=" / "?"
  4511.  
  4512.             charset := "us-ascii" / "iso-8859-1" / "iso-8859-2" /  "iso-
  4513.             8859-3"
  4514.                  / "iso-8859-4" / "iso-8859-5" /  "iso-8859-6"  /  "iso-
  4515.             8859-7"
  4516.                  / "iso-8859-8" / "iso-8859-9" / extension-token
  4517.  
  4518.  
  4519.  
  4520.  
  4521.  
  4522.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 75]
  4523.  
  4524.  
  4525.  
  4526.  
  4527.  
  4528.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4529.  
  4530.  
  4531.                  ; case insensitive
  4532.  
  4533.             close-delimiter := "--" boundary "--" CRLF ; Again, no space
  4534.             by "--",
  4535.  
  4536.             content  :=   "Content-Type"  ":"  type  "/"  subtype  *(";"
  4537.             parameter)
  4538.                       ; case-insensitive matching of type and subtype
  4539.  
  4540.             Content-Description := *text
  4541.  
  4542.             Content-ID := msg-id
  4543.  
  4544.             delimiter := "--" boundary CRLF   ; taken from  Content-Type
  4545.             field.
  4546.                                          ; There must be no space
  4547.                                          ; between "--" and boundary.
  4548.  
  4549.             encapsulation := delimiter body-part CRLF
  4550.  
  4551.             encoding := "Content-Transfer-Encoding ":" mechanism
  4552.  
  4553.             epilogue := discard-text                  ;  to  be  ignored
  4554.             upon receipt.
  4555.  
  4556.             extension-token :=  x-token / iana-token
  4557.  
  4558.             external-param :=     (";" "access-type" "=" atype)
  4559.                            / (";" "expiration" "=" date-time)
  4560.                            / (";" "size" "=" 1*DIGIT)
  4561.                            / (";"  "permission"  "="  ("read"  /  "read-
  4562.             write"))
  4563.                            / (";" "name" "="  value)
  4564.                            / (";" "site" "=" value)
  4565.                            / (";" "dir" "=" value)
  4566.                            / (";" "mode" "=" value)
  4567.                            / (";" "server" "=" value)
  4568.                       ; access-type required; others required  based  on
  4569.             access-type
  4570.  
  4571.             filename := "filename" "=" "value"
  4572.                  ; suggested name to use if body-part is stored locally
  4573.  
  4574.             iana-token := <a publicly-defined extension token,
  4575.  
  4576.  
  4577.  
  4578.  
  4579.  
  4580.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 76]
  4581.  
  4582.  
  4583.  
  4584.  
  4585.  
  4586.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4587.  
  4588.  
  4589.                       registered with IANA, as specified in
  4590.                       appendix E>
  4591.  
  4592.             qp-iffy :=       "[" /  "]" /  <"> /  "\" /  "@"
  4593.                  /  "!" /  "#" /  "$" /  "^" /  "'"
  4594.                  /  "{" /  "|" /  "}" /  "~" /  "`"
  4595.  
  4596.             image-type := "image" "/" ("gif" / "jpeg" / extension-token)
  4597.  
  4598.             mechanism :=     "7bit"
  4599.                            / "quoted-printable"
  4600.                            / "quoted-base64"
  4601.                            / "8bit"
  4602.                            / "binary"
  4603.                            / x-token
  4604.  
  4605.             message-subtype := "rfc822"
  4606.                             / "partial" 2#3partial-param
  4607.                            / "external-body" 1*external-param
  4608.                            / extension-token
  4609.  
  4610.             message-type := "message" "/" message-subtype
  4611.  
  4612.             MIME-Version := 1*DIGIT "." 1*DIGIT
  4613.  
  4614.             multipart-body := preamble  1*encapsulation  close-delimiter
  4615.             epilogue
  4616.  
  4617.             multipart-subtype := "mixed" / "parallel" / "digest"
  4618.                            / "alternative" / "extension-token"
  4619.  
  4620.             multipart-type  :=  "multipart"  "/"  multipart-subtype  ";"
  4621.             "boundary" "=" boundary
  4622.  
  4623.             discard-text := *[*text CRLF]
  4624.  
  4625.             octet := "=" 2(DIGIT / "A" / "B" / "C" / "D" / "E" / "F")
  4626.                  ; octet must be used for characters > 127, =, SPACE, or
  4627.             TAB,
  4628.                  ; and is recommended for the "qp-iffy" characters too.
  4629.  
  4630.             padding := "0" / "1" /  "2" /  "3" / "4" / "5" / "6" / "7"
  4631.  
  4632.             parameter := attribute "=" value
  4633.  
  4634.  
  4635.  
  4636.  
  4637.  
  4638.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 77]
  4639.  
  4640.  
  4641.  
  4642.  
  4643.  
  4644.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4645.  
  4646.  
  4647.             parms :=  filename / parameter
  4648.  
  4649.             partial-param :=      (";" "id" "=" value)
  4650.                            /  (";" "number" "=" 1*DIGIT)
  4651.                            /  (";" "total" "=" 1*DIGIT)
  4652.                       ; id & number required; total  required  for  last
  4653.             part
  4654.  
  4655.             preamble := discard-text                  ;  to  be  ignored
  4656.             upon receipt.
  4657.  
  4658.             ptext := octet / <any ASCII character except "=", SPACE,  or
  4659.             TAB>
  4660.                  ; characters in "qp-iffy" are also not recommended
  4661.  
  4662.             quoted-printable := ([*(ptext / SPACE /  TAB)  ptext]  ["="]
  4663.             CRLF)
  4664.                  ; Maximum line length of 78 characters
  4665.  
  4666.             stream :=      [";" "name" "=" value]
  4667.                       [";" type "=" value]
  4668.                       [";" padding "=" padding]
  4669.  
  4670.             subtype := token
  4671.  
  4672.             text-subtype := "plain" / "richtext"
  4673.  
  4674.             text-type := "text"  "/"  text-subtype  [";"  "charset"  "="
  4675.             charset]
  4676.  
  4677.             token  :=  1*<any  (ASCII)  CHAR  except  SPACE,  CTLs,   or
  4678.             tspecials>
  4679.  
  4680.             tspecials :=  "(" / ")" / "<" / ">" / "@"
  4681.                        /  "," / ";" / ":" / "\" / <">
  4682.                        /  "/" / "[" / "]" / "?" / "="
  4683.                       ; Must be in quoted-string,
  4684.                       ; to use withing parameter values
  4685.  
  4686.  
  4687.             type :=            "application"     /  "audio"     ;  case-
  4688.             insensitive
  4689.                       / "image"           / "message"
  4690.                       / "multipart"  / "text"
  4691.  
  4692.  
  4693.  
  4694.  
  4695.  
  4696.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 78]
  4697.  
  4698.  
  4699.  
  4700.  
  4701.  
  4702.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4703.  
  4704.  
  4705.                       / "video"           / extension-token
  4706.                       ; All values case-insensitive
  4707.  
  4708.             value := token / quoted-string
  4709.  
  4710.             video-type := "video" "/" ("mpeg" / extension-token)
  4711.  
  4712.             x-token := <The two characters "X-" or "x-"  followed,  with
  4713.             no
  4714.                        intervening white space, by any token>
  4715.  
  4716.  
  4717.  
  4718.  
  4719.  
  4720.  
  4721.  
  4722.  
  4723.  
  4724.  
  4725.  
  4726.  
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.  
  4736.  
  4737.  
  4738.  
  4739.  
  4740.  
  4741.  
  4742.  
  4743.  
  4744.  
  4745.  
  4746.  
  4747.  
  4748.  
  4749.  
  4750.  
  4751.  
  4752.  
  4753.  
  4754.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 79]
  4755.  
  4756.  
  4757.  
  4758.  
  4759.  
  4760.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4761.  
  4762.  
  4763.             Appendix E -- IANA Registration Procedures
  4764.  
  4765.             MIME  has  been  carefully  designed  to   have   extensible
  4766.             mechanisms,  and  it  is  expected  that the set of content-
  4767.             type/subtype pairs and their associated parameters will grow
  4768.             significantly with time.  Several other MIME fields, notably
  4769.             character  set  names,  access-type   parameters   for   the
  4770.             message/external-body   type,  and  possibly  even  Content-
  4771.             Transfer-Encoding values, are  likely  to  have  new  values
  4772.             defined  over time.  In order to ensure that the set of such
  4773.             values is  developed  in  an  orderly,  well-specified,  and
  4774.             public  manner,  MIME  defines  a registration process which
  4775.             uses the Internet Assigned Numbers  Authority  (IANA)  as  a
  4776.             central registry for such values.
  4777.  
  4778.             In general, parameters in the content-type header field  are
  4779.             used  to convey supplemental information for various content
  4780.             types, and their use is defined when  the  content-type  and
  4781.             subtype  are  defined.  New parameters should not be defined
  4782.             as a way to introduce new functionality.
  4783.  
  4784.             In  order  to  simplify  and  standardize  the  registration
  4785.             process,  this appendix gives templates for the registration
  4786.             of new values with IANA.  Each of these is given in the form
  4787.             of  an  email  message  template,  to  be  filled  in by the
  4788.             registering party.
  4789.  
  4790.             E.1  Registration of New Content-type/subtype Values
  4791.  
  4792.             Note that MIME is  generally  expected  to  be  extended  by
  4793.             subtypes.   If  a  new fundamental top-level type is needed,
  4794.             its specification must be published as an RFC or   submitted
  4795.             in  a form  suitable to become an RFC, and be subject to the
  4796.             Internet standards process.
  4797.  
  4798.                  To:  IANA@isi.edu
  4799.                  Subject:  Registration of new MIME
  4800.                       content-type/subtype
  4801.  
  4802.                  MIME type name:
  4803.  
  4804.                  (If the above is not an existing top-level MIME type,
  4805.                  please explain why an existing type cannot be used.)
  4806.  
  4807.                  MIME subtype name:
  4808.  
  4809.  
  4810.  
  4811.  
  4812.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 80]
  4813.  
  4814.  
  4815.  
  4816.  
  4817.  
  4818.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4819.  
  4820.  
  4821.                  Required parameters:
  4822.  
  4823.                  Optional parameters:
  4824.  
  4825.                  Encoding considerations:
  4826.  
  4827.                  Security considerations:
  4828.  
  4829.                  Published specification:
  4830.  
  4831.                  (The published specification must be an Internet RFC or
  4832.                  RFC-to-be if a new top-level type is being defined, and
  4833.                  must be a publicly available specification in any
  4834.                  case.)
  4835.  
  4836.                  Person & email address to contact for further
  4837.                  information:
  4838.  
  4839.             E.2  Registration of New Character Set Values
  4840.  
  4841.                  To:  IANA@isi.edu
  4842.                  Subject:  Registration of new MIME character set value
  4843.  
  4844.                  MIME character set name:
  4845.  
  4846.                  Published specification:
  4847.  
  4848.                  (The published specification must be an Internet RFC or
  4849.                  RFC-to-be or an international standard.)
  4850.  
  4851.                  Person & email address to contact for further
  4852.                  information:
  4853.  
  4854.             E.3  Registration of New Access-type Values for
  4855.             Message/external-body
  4856.  
  4857.                  To:  IANA@isi.edu
  4858.                  Subject:  Registration of new MIME Access-type for
  4859.                       Message/external-body content-type
  4860.  
  4861.                  MIME access-type name:
  4862.  
  4863.                  Required parameters:
  4864.  
  4865.                  Optional parameters:
  4866.  
  4867.  
  4868.  
  4869.  
  4870.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 81]
  4871.  
  4872.  
  4873.  
  4874.  
  4875.  
  4876.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4877.  
  4878.  
  4879.                  Published specification:
  4880.  
  4881.                  (The published specification must be an Internet RFC or
  4882.                  RFC-to-be.)
  4883.  
  4884.                  Person & email address to contact for further
  4885.                  information:
  4886.  
  4887.  
  4888.  
  4889.  
  4890.  
  4891.  
  4892.  
  4893.  
  4894.  
  4895.  
  4896.  
  4897.  
  4898.  
  4899.  
  4900.  
  4901.  
  4902.  
  4903.  
  4904.  
  4905.  
  4906.  
  4907.  
  4908.  
  4909.  
  4910.  
  4911.  
  4912.  
  4913.  
  4914.  
  4915.  
  4916.  
  4917.  
  4918.  
  4919.  
  4920.  
  4921.  
  4922.  
  4923.  
  4924.  
  4925.  
  4926.  
  4927.  
  4928.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 82]
  4929.  
  4930.  
  4931.  
  4932.  
  4933.  
  4934.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4935.  
  4936.  
  4937.             Appendix F -- Summary of the Seven Content-types
  4938.  
  4939.             [Note that the "filename" parameter is valid  for  all  MIME
  4940.             content-types.]
  4941.  
  4942.             ________________________________________________________________
  4943.  
  4944.             Content-type: text
  4945.  
  4946.             Subtypes defined by this document:  plain, richtext
  4947.  
  4948.             Important Parameters: charset
  4949.  
  4950.             Encoding notes: quoted-printable generally preferred  if  an
  4951.                  encoding  is  needed and the character set is mostly an
  4952.                  ASCII superset.
  4953.  
  4954.             Security considerations:  Rich text formats such as TeX  and
  4955.                  Troff  often contain mechanisms for executing arbitrary
  4956.                  commands or file system operations, and should  not  be
  4957.                  used  automatically unless these security problems have
  4958.                  been addressed.  Even plain text  may  contain  control
  4959.                  characters that can be used to exploit the capabilities
  4960.                  of   "intelligent"   terminals   and   cause   security
  4961.                  violations.   User  interfaces  designed to run on such
  4962.                  terminals should be aware of and try  to  prevent  such
  4963.                  problems.
  4964.             ________________________________________________________________
  4965.  
  4966.             Content-type: multipart
  4967.  
  4968.             Subtypes defined by  this  document:    mixed,  alternative,
  4969.                  digest, parallel.
  4970.  
  4971.             Important Parameters: boundary
  4972.  
  4973.             Encoding notes: No content-transfer-encoding is permitted.
  4974.  
  4975.             ________________________________________________________________
  4976.  
  4977.             Content-type: message
  4978.  
  4979.             Subtypes  defined  by  this  document:    rfc822,   partial,
  4980.                  external-body
  4981.  
  4982.  
  4983.  
  4984.  
  4985.  
  4986.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 83]
  4987.  
  4988.  
  4989.  
  4990.  
  4991.  
  4992.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  4993.  
  4994.  
  4995.             Important  Parameters:  id,  number,   total,   access-type,
  4996.                  expiration,  size,  perimssion,  name, site, directory,
  4997.                  mode, server, subject
  4998.  
  4999.             Encoding notes: No content-transfer-encoding  is  permitted.
  5000.                  Specifically,    only    "7bit"    is   permitted   for
  5001.                  "message/partial", and only "7bit", "8bit", or "binary"
  5002.                  are permitted for other subtypes of "message".
  5003.  
  5004.             ________________________________________________________________
  5005.  
  5006.             Content-type: application
  5007.  
  5008.             Subtypes defined by this document:  octet-stream, postscript
  5009.  
  5010.             Important Parameters:  filename, type, padding
  5011.  
  5012.             Deprecated Parameter:   name  is  an  obsolete  synonym  for
  5013.                  filename
  5014.  
  5015.             Encoding notes: base64 preferred for unreadable subtypes.
  5016.  
  5017.             Security considerations:  This  type  is  intended  for  the
  5018.             transmission  of data to be interpreted by locally-installed
  5019.             programs.  If used,  for  example,  to  transmit  executable
  5020.             binary  programs  or programs in general-purpose interpreted
  5021.             languages, such as LISP programs or  shell  scripts,  severe
  5022.             security  problems  could  result.   Authors of mail-reading
  5023.             agents are cautioned against giving their systems the  power
  5024.             to  execute  mail-based  application  data without carefully
  5025.             considering  the  security  implications.    While   it   is
  5026.             certainly  possible  to  define safe application formats and
  5027.             even safe interpreters for unsafe formats, each  interpreter
  5028.             should   be   evaluated  separately  for  possible  security
  5029.             problems.
  5030.             ________________________________________________________________
  5031.  
  5032.             Content-type: image
  5033.  
  5034.             Subtypes defined by this document:  jpeg, gif
  5035.  
  5036.             Important Parameters: none
  5037.  
  5038.             Encoding notes: base64 generally preferred
  5039.  
  5040.  
  5041.  
  5042.  
  5043.  
  5044.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 84]
  5045.  
  5046.  
  5047.  
  5048.  
  5049.  
  5050.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5051.  
  5052.  
  5053.             ________________________________________________________________
  5054.  
  5055.             Content-type: audio
  5056.  
  5057.             Subtypes defined by this document:  basic
  5058.  
  5059.             Important Parameters: none
  5060.  
  5061.             Encoding notes: base64 generally preferred
  5062.  
  5063.             ________________________________________________________________
  5064.  
  5065.             Content-type: video
  5066.  
  5067.             Subtypes defined by this document:  mpeg
  5068.  
  5069.             Important Parameters: none
  5070.  
  5071.             Encoding notes: base64 generally preferred
  5072.  
  5073.  
  5074.  
  5075.  
  5076.  
  5077.  
  5078.  
  5079.  
  5080.  
  5081.  
  5082.  
  5083.  
  5084.  
  5085.  
  5086.  
  5087.  
  5088.  
  5089.  
  5090.  
  5091.  
  5092.  
  5093.  
  5094.  
  5095.  
  5096.  
  5097.  
  5098.  
  5099.  
  5100.  
  5101.  
  5102.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 85]
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5109.  
  5110.  
  5111.             Appendix G -- Canonical Encoding Model
  5112.  
  5113.             There was some confusion, in earlier drafts  of  this  memo,
  5114.             regarding  the model for when email data was to be converted
  5115.             to canonical form and encoded, and in  particular  how  this
  5116.             process  would affect the treatment of CRLFs, given that the
  5117.             representation of newlines varies  greatly  from  system  to
  5118.             system.   For this reason, a canonical model for encoding is
  5119.             presented below.
  5120.  
  5121.             The process of composing a MIME entity  can  be  modeled  as
  5122.             being  done in a number of steps.  Note that these steps are
  5123.             roughly similar to those  steps  used  in  RFC1113  and  are
  5124.             performed for each 'innermost level' body:
  5125.  
  5126.             Step 1.  Creation of local form.
  5127.  
  5128.             The body to be transmitted is created in the system's native
  5129.             format.    The  native  character  set  is  used,  and where
  5130.             appropriate local end of line conventions are used as  well.
  5131.             The may be a UNIX-style text file, or a Sun raster image, or
  5132.             a VMS indexed file, or  audio  data  in  a  system-dependent
  5133.             format   stored  only  in  memory,  or  anything  else  that
  5134.             corresponds to the local model  for  the  representation  of
  5135.             some form of information.
  5136.  
  5137.             Step 2.  Conversion to canonical form.
  5138.  
  5139.             The entire body, including "out-of-band" information such as
  5140.             record  lengths  and possibly file attribute information, is
  5141.             converted to  a  universal  canonical  form.   The  specific
  5142.             content   type  of  the  body  as  well  as  its  associated
  5143.             attributes dictate the nature of the canonical form that  is
  5144.             used.   Conversion  to the proper canonical form may involve
  5145.             character set  conversion,  transformation  of  audio  data,
  5146.             compression,  or  various  other  operations specific to the
  5147.             various content types.
  5148.  
  5149.             For example, in the case of text/plain data, the  text  must
  5150.             be  converted to a supported character set and lines must be
  5151.             delimited with CRLF delimiters in  accordance  with  RFC822.
  5152.             Note  that the restriction on line lengths implied by RFC822
  5153.             is eliminated  if  the  next  step  employs  either  quoted-
  5154.             printable or base64 encoding.
  5155.  
  5156.  
  5157.  
  5158.  
  5159.  
  5160.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 86]
  5161.  
  5162.  
  5163.  
  5164.  
  5165.  
  5166.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5167.  
  5168.  
  5169.             Step 3.  Apply transfer encoding.
  5170.  
  5171.             A Content-Transfer-Encoding appropriate  for  this  body  is
  5172.             applied.   Note  that there is no fixed relationship between
  5173.             the content type and the transfer encoding.  In  particular,
  5174.             it  may  be  appropriate  to  base  the  choice of base64 or
  5175.             quoted-printable on character  frequency  counts  which  are
  5176.             specific to a given instance of a body.
  5177.  
  5178.  
  5179.  
  5180.  
  5181.  
  5182.  
  5183.  
  5184.  
  5185.  
  5186.  
  5187.  
  5188.  
  5189.  
  5190.  
  5191.  
  5192.  
  5193.  
  5194.  
  5195.  
  5196.  
  5197.  
  5198.  
  5199.  
  5200.  
  5201.  
  5202.  
  5203.  
  5204.  
  5205.  
  5206.  
  5207.  
  5208.  
  5209.  
  5210.  
  5211.  
  5212.  
  5213.  
  5214.  
  5215.  
  5216.  
  5217.  
  5218.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 87]
  5219.  
  5220.  
  5221.  
  5222.  
  5223.  
  5224.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5225.  
  5226.  
  5227.             Step 4.  Insertion into entity.
  5228.  
  5229.             The encoded object is  inserted  into  a  MIME  entity  with
  5230.             appropriate  headers.   The entity is then inserted into the
  5231.             body of a higher-level  entity  (message  or  multipart)  if
  5232.             needed.
  5233.  
  5234.             It is vital to note that these steps are only a model;  they
  5235.             are  specifically  NOT  a blueprint for how an actual system
  5236.             would be built.  In particular, the model fails  to  account
  5237.             for two common designs:
  5238.  
  5239.                  1.  In many cases the conversion  to  a  canonical
  5240.                  form  prior  to encoding will be subsumed into the
  5241.                  encoder itself, which  understands  local  formats
  5242.                  directly.    For   example,   the   local  newline
  5243.                  convention  for  text  bodies  might  be   carried
  5244.                  through to the encoder itself along with knowledge
  5245.                  of what that format is.
  5246.  
  5247.                  2.  The output of the encoders may  have  to  pass
  5248.                  through  one  or  more  additional  steps prior to
  5249.                  being transmitted as  a  message.   As  such,  the
  5250.                  output  of  the encoder may not be conformant with
  5251.                  the formats specified by RFC822.   In  particular,
  5252.                  once   again   it   may  be  appropriate  for  the
  5253.                  converter's output to  be  expressed  using  local
  5254.                  newline conventions rather than using the standard
  5255.                  RFC822 CRLF delimiters.
  5256.  
  5257.             Other implementation variations  are  conceivable  as  well.
  5258.             The  only  important  aspect  of this discussion is that the
  5259.             resulting messages are consistent with those produced by the
  5260.             model described here.
  5261.  
  5262.  
  5263.  
  5264.  
  5265.  
  5266.  
  5267.  
  5268.  
  5269.  
  5270.  
  5271.  
  5272.  
  5273.  
  5274.  
  5275.  
  5276.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 88]
  5277.  
  5278.  
  5279.  
  5280.  
  5281.  
  5282.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5283.  
  5284.  
  5285.             Appendix H -- Changes from RFC 1341
  5286.  
  5287.             This document is a relatively minor revision  of  RFC  1341.
  5288.             For  the  convenience  of  those familiar with RFC 1341, the
  5289.             technical changes from that document are summarized in  this
  5290.             appendix.
  5291.  
  5292.             1.  The definition of "tspecials" has  been  changed  to  no
  5293.             longer include ".".
  5294.  
  5295.             2.  The definition of base64 has  been  enhanced  to  permit
  5296.             "====" to mark the termination of data.
  5297.  
  5298.             3.    The   Content-ID   field   is   now   mandatory    for
  5299.             message/external-body parts.
  5300.  
  5301.             4.  The text/richtext type (including the old Section  7.1.3
  5302.             and Appendix D) has been moved to a separate document.
  5303.  
  5304.             5.  The rules on header  merging  for  message/partial  data
  5305.             have  been  changed  to treat the Encrypted and MIME-Version
  5306.             headers as special cases.
  5307.  
  5308.             6.   There is a new header  field,  "Content-MD5",  for  the
  5309.             long-awaited message integrity check.
  5310.  
  5311.             7.   The  definition  of   the   external-body   access-type
  5312.             parameter  has  been  changed so that it can only indicate a
  5313.             single access method (which was all that made sense).
  5314.  
  5315.             8.    There   is   a    new    "Subject"    parameter    for
  5316.             message/external-body,  access-type  mail-server,  to permit
  5317.             MIME-based use of mail servers that rely  on  Subject  field
  5318.             information.
  5319.  
  5320.             9.  The "conversions" parameter for application/octet-stream
  5321.             has been removed.
  5322.  
  5323.             10.  A "filename" parameter is now defined for ALL  content-
  5324.             types.   Section  7.4.1 now deprecates the use of the "name"
  5325.             parameter  for  application/octet-stream,  as  this  is  now
  5326.             superseded by "filename".
  5327.  
  5328.             11.  The  formal  grammar  for  multipart  bodies  has  been
  5329.             changed  so  that  a  CRLF  is no longer required before the
  5330.             first boundary line.
  5331.  
  5332.  
  5333.  
  5334.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 89]
  5335.  
  5336.  
  5337.  
  5338.  
  5339.  
  5340.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5341.  
  5342.  
  5343.             12.   MIME  entities  of  type  "message/partial"  are   now
  5344.             required   to   use   only   the  "7bit"  transfer-encoding.
  5345.             (Specifially, "binary" and "8bit" are not permitted.)
  5346.  
  5347.             13.  The "application/oda" content-type has been removed.
  5348.  
  5349.             14.  A note has been added to  the  end  of  section  7.2.3,
  5350.             explaining    the    semantics    of    Content-ID    in   a
  5351.             multipart/alternative MIME entity.
  5352.  
  5353.             15.  The formal syntax for the "MIME-Version" field has been
  5354.             tightened,  but  in a way that is completely compatible with
  5355.             the only version number defined in RFC 1341.
  5356.  
  5357.             16.  In Section 7.3.1, the definition of message/rfc822  has
  5358.             been relaxed regarding mandatory fields.
  5359.  
  5360.             All other changes from RFC 1341 were editorial  changes  and
  5361.             do  not  affect the technical content of MIME.  Considerable
  5362.             formal grammar has been added, but this reflects  the  prose
  5363.             specification that was already in place.
  5364.  
  5365.  
  5366.  
  5367.  
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.  
  5374.  
  5375.  
  5376.  
  5377.  
  5378.  
  5379.  
  5380.  
  5381.  
  5382.  
  5383.  
  5384.  
  5385.  
  5386.  
  5387.  
  5388.  
  5389.  
  5390.  
  5391.  
  5392.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 90]
  5393.  
  5394.  
  5395.  
  5396.  
  5397.  
  5398.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5399.  
  5400.  
  5401.             References
  5402.  
  5403.             [US-ASCII] Coded Character Set--7-Bit American Standard Code
  5404.             for Information Interchange, ANSI X3.4-1986.
  5405.  
  5406.             [ATK]  Borenstein,  Nathaniel  S.,  Multimedia  Applications
  5407.             Development with the Andrew Toolkit, Prentice-Hall, 1990.
  5408.  
  5409.             [GIF] Graphics Interchange Format (Version 89a), Compuserve,
  5410.             Inc., Columbus, Ohio, 1990.
  5411.  
  5412.             [ISO-2022] International Standard--Information  Processing--
  5413.             ISO  7-bit  and  8-bit  coded character sets--Code extension
  5414.             techniques, ISO 2022:1986.
  5415.  
  5416.             [ISO-8859] Information Processing -- 8-bit Single-Byte Coded
  5417.             Graphic  Character Sets -- Part 1: Latin Alphabet No. 1, ISO
  5418.             8859-1:1987.  Part 2: Latin  alphabet  No.  2,  ISO  8859-2,
  5419.             1987.  Part 3: Latin alphabet No. 3, ISO 8859-3, 1988.  Part
  5420.             4:  Latin  alphabet  No.  4,  ISO  8859-4,  1988.   Part  5:
  5421.             Latin/Cyrillic   alphabet,  ISO  8859-5,  1988.     Part  6:
  5422.             Latin/Arabic  alphabet,  ISO  8859-6,   1987.      Part   7:
  5423.             Latin/Greek   alphabet,   ISO   8859-7,   1987.     Part  8:
  5424.             Latin/Hebrew alphabet, ISO 8859-8, 1988.     Part  9:  Latin
  5425.             alphabet No. 5, ISO 8859-9, 1990.
  5426.  
  5427.             [ISO-646] International  Standard--Information  Processing--
  5428.             ISO  7-bit coded  character set for information interchange,
  5429.             ISO 646:1983.
  5430.  
  5431.             [MPEG]  Video  Coding  Draft  Standard  ISO  11172  CD,  ISO
  5432.             IEC/TJC1/SC2/WG11 (Motion Picture Experts Group), May, 1991.
  5433.  
  5434.             [PCM] CCITT, Fascicle III.4 - Recommendation G.711,  Geneva,
  5435.             1972, "Pulse Code Modulation (PCM) of Voice Frequencies".
  5436.  
  5437.             [POSTSCRIPT]  Adobe  Systems,  Inc.,   PostScript   Language
  5438.             Reference Manual,  Addison-Wesley, 1985.
  5439.  
  5440.             [POSTSCRIPT2]  Adobe  Systems,  Inc.,   PostScript  Language
  5441.             Reference Manual,  Addison-Wesley, Second Edition, 1990.
  5442.  
  5443.             [X400]  Schicker, Pietro, "Message Handling Systems, X.400",
  5444.             Message  Handling  Systems  and Distributed Applications, E.
  5445.             Stefferud, O-j. Jacobsen,  and  P.  Schicker,  eds.,  North-
  5446.             Holland, 1989, pp. 3-41.
  5447.  
  5448.  
  5449.  
  5450.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 91]
  5451.  
  5452.  
  5453.  
  5454.  
  5455.  
  5456.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5457.  
  5458.  
  5459.             [RFC-783]  Sollins, K.R.  TFTP Protocol (revision 2).  June,
  5460.             1981, MIT, RFC-783.
  5461.  
  5462.             [RFC-821]  Postel,  J.B.   Simple  Mail  Transfer  Protocol.
  5463.             August, 1982, USC/Information Sciences Institute, RFC-821.
  5464.  
  5465.             [RFC-822]   Crocker, D.  Standard for  the  format  of  ARPA
  5466.             Internet  text  messages. August, 1982, UDEL, RFC-822.
  5467.  
  5468.             [RFC-934]   Rose, M.T.; Stefferud, E.A.   Proposed  standard
  5469.             for    message     encapsulation.  January,   1985, Delaware
  5470.             and NMA, RFC-934.
  5471.  
  5472.             [RFC-959]   Postel,  J.B.;  Reynolds,  J.K.   File  Transfer
  5473.             Protocol.      October,   1985,   USC/Information   Sciences
  5474.             Institute, RFC-959.
  5475.  
  5476.             [RFC-1049]   Sirbu,  M.A.   Content-Type  header  field  for
  5477.             Internet messages.  March, 1988, CMU,  RFC-1049.
  5478.  
  5479.             [RFC-1113]   Linn,  J.   Privacy  enhancement  for  Internet
  5480.             electronic    mail:  Part    I  -  message  encipherment and
  5481.             authentication procedures.   August,  1989, IAB Privacy Task
  5482.             Force, RFC-1113.
  5483.  
  5484.             [RFC-1154]  Robinson, D.; Ullmann, R.  Encoding header field
  5485.             for   Internet   messages.  April,   1990,   Prime Computer,
  5486.             Inc., RFC-1154.
  5487.  
  5488.             [RFC-1321]  Rivest, R.,  The  M5  Message-Digest  Algorithm.
  5489.             April, 1992, MIT & RSA, RFC-1321.
  5490.  
  5491.             [RFC-1342] Moore, Keith, Representation of Non-Ascii Text in
  5492.             Internet   Message   Headers.   June,  1992,  University  of
  5493.             Tennessee, RFC-1342.
  5494.  
  5495.             [RFC-1343]    Borenstein,   Nathaniel,    A    User    Agent
  5496.             Configuration   Mechanism   for   Multimedia   Mail   Format
  5497.             Information.  RFC-1343.
  5498.  
  5499.             [RFC-1344]  Borenstein, Nathaniel, Implications of MIME  for
  5500.             Internet Mail Gateways. June, 1992, Bellcore, RFC-1344
  5501.  
  5502.             [RFC-1345]    Simonsen,   Keld,    Character   Mnemonics   &
  5503.             Character Sets.  June, 1992, RFC 1345
  5504.  
  5505.  
  5506.  
  5507.  
  5508.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 92]
  5509.  
  5510.  
  5511.  
  5512.  
  5513.  
  5514.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5515.  
  5516.  
  5517.             Security Considerations
  5518.  
  5519.             Security issues  are  discussed  in  Section  7.4.2  and  in
  5520.             Appendix  F.   Implementors should pay special attention  to
  5521.             the security implications of any mail content-types that can
  5522.             cause the remote execution of any actions in the recipient's
  5523.             environment.   In  such  cases,  the   discussion   of   the
  5524.             application/postscript   content-type  in  Section 7.4.2 may
  5525.             serve as a model for considering  other  content-types  with
  5526.             remote execution capabilities.
  5527.  
  5528.  
  5529.  
  5530.  
  5531.  
  5532.  
  5533.  
  5534.  
  5535.  
  5536.  
  5537.  
  5538.  
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546.  
  5547.  
  5548.  
  5549.  
  5550.  
  5551.  
  5552.  
  5553.  
  5554.  
  5555.  
  5556.  
  5557.  
  5558.  
  5559.  
  5560.  
  5561.  
  5562.  
  5563.  
  5564.  
  5565.  
  5566.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 93]
  5567.  
  5568.  
  5569.  
  5570.  
  5571.  
  5572.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5573.  
  5574.  
  5575.             Authors' Addresses
  5576.  
  5577.             For more information, the authors of this  document  may  be
  5578.             contacted via Internet mail:
  5579.  
  5580.                                 Nathaniel S. Borenstein
  5581.                                  MRE 2D-296, Bellcore
  5582.                                      445 South St.
  5583.                                Morristown, NJ 07962-1910
  5584.  
  5585.                                 Phone: +1 201 829 4270
  5586.                                  Fax:  +1 201 829 7019
  5587.                                 Email: nsb@bellcore.com
  5588.  
  5589.  
  5590.                                        Ned Freed
  5591.                              Innosoft International, Inc.
  5592.                                  250 West First Street
  5593.                                        Suite 240
  5594.                                   Claremont, CA 91711
  5595.  
  5596.                                 Phone:  +1 714 624 7907
  5597.                                  Fax: +1 714 621 5319
  5598.                                 Email: ned@innosoft.com
  5599.  
  5600.             MIME is a result of the work  of  the  Internet  Engineering
  5601.             Task  Force Working Group on Email Extensions.  The chairman
  5602.             of that group, Greg Vaudreuil, may be reached at:
  5603.  
  5604.                                 Gregory M. Vaudreuil
  5605.                    Corporation for National Research Initiatives
  5606.                                      Suite 100
  5607.                               1895 Preston White Drive
  5608.                                  Reston, VA  22091
  5609.  
  5610.                              Phone:    +1 703-620-8990
  5611.                                Fax:      +1 703-620-0913
  5612.                           Email: gvaudre@cnri.reston.va.us
  5613.  
  5614.  
  5615.  
  5616.  
  5617.  
  5618.  
  5619.  
  5620.  
  5621.  
  5622.  
  5623.  
  5624.             Borenstein & Freed DRAFT - expires 8/1/93          [Page 94]
  5625.  
  5626.  
  5627.  
  5628.  
  5629.  
  5630.             MIME       Multipurpose Internet Mail ExtensionFebruary 1993
  5631.  
  5632.  
  5633.  
  5634.  
  5635.  
  5636.  
  5637.  
  5638.  
  5639.  
  5640.  
  5641.  
  5642.  
  5643.  
  5644.  
  5645.  
  5646.  
  5647.  
  5648.  
  5649.  
  5650.  
  5651.  
  5652.  
  5653.  
  5654.  
  5655.  
  5656.  
  5657.  
  5658.  
  5659.  
  5660.  
  5661.  
  5662.  
  5663.  
  5664.  
  5665.  
  5666.  
  5667.  
  5668.  
  5669.  
  5670.  
  5671.  
  5672.  
  5673.  
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679.  
  5680.  
  5681.  
  5682.             Borenstein & Freed DRAFT - expires 8/1/93           [Page i]
  5683.  
  5684.  
  5685.